Question Paper1-Format-B.E 2023-24-NEP Batch
Question Paper1-Format-B.E 2023-24-NEP Batch
4.a) L3 CO4 Consider a relational database for an online shopping platform with 6
the following tables:
Customers(customer_id, customer_name, email, total_orders)
Orders(order_id, customer_id, order_date, total_amount)
Write a SQL statement to create a trigger that automatically updates
the total_orders column in the Customers table whenever a new
order is inserted into the Orders table. Explain its components
b) L3 CO4 Consider a relational database schema for a company's human 6
resources department:
Employees(employee_id, employee_name, department_id, salary,
hire_date)
Departments(department_id, department_name, manager_id)
Salaries(employee_id, salary_amount, effective_date)
Write SQL statement to create a view that shows the current salaries
of all employees, including their names and departments
c) L3 CO4 Explain different transaction States. Write an SQL command to set 8
the transaction isolation level to Read Committed.