DBMS Module4 QuestionBank
DBMS Module4 QuestionBank
MODULE-4
SQL: Advances Queries, Transaction Processing
CO
Q. No. Question CL Marks
s
Discuss how each of the following constructs is used in SQL and discuss
the various options for each construct:
1 CO4 L2 10M
(a) Nested Queries (b) Group by and Having clause (c) Schema change
statements (d) Aggregate functions (e) Views
How are Assertions and Triggers defined in SQL? Explain with an
2 CO4 L2 8M
example.(July/Aug 2022)
Explain the basic data types available for attributes in SQL. ”.(Dec
3 CO4 L2 5M
2023/Jan 2024)
What are triggers? Explain with syntax and suitable example. ”.(Dec
4 CO4 L2 5M
2023/Jan 2024)
What are assertions? Assuming suitable company schema write an
assertion for the condition.
5 “The salary of an employee must not be greater than the salary of the CO4 L2 6M
manager of the department that the employee works for”.(Dec
2023/Jan 2024)
How is view created and dropped? What problems are associated with
7 CO4 L1 6M
updating view?(June/July 2023)
Explain EXISTS and UNIQUE functions in SQL. Consider the COMPANY
8 database and write a query to list the name of the manager who have CO4 L2 8M
atleast one dependent. (Jan/Feb 2023)
Explain the usage of Aggregate function in SQL. Write an SQL query to
find sum of the salaries of all employees, the maximum salary, the
9 CO4 L2 10M
minimum salary and the average salary by renaming the columns in a
single row table. (Jan/Feb 2023)
With a real world example, explain the following:
10 (i) Correlated nested queries (ii) Schema change statements in CO4 L2 6M
SQL (Jan/Feb 2023)
Define transaction. Discuss ACID properties. (Jan 2022, Feb 2021, Jan CO4 L2 7M
11
2019, July 2019, July 2018, July/Aug 2022,Jan/Feb 2023)
Discuss the desirable properties of a transactions. (Feb 2021, Jan 2019, CO4 L2 6M
15
Jan 2018,Dec 2023/Jan 2024)
What is schedule? Explain conflict and view serializability schedule with CO4 L2 8M
22
example.
Course Faculty
(Lakshmi Sravani G)