
RDBMS CIA-2 - Predicted Question Paper Page 1
RDBMS - CIA-2 PREDICTED QUESTION PAPER
Modules III, IV and V | Questions Only | High-Yield Exam Practice
Instructions: Answer the questions as per the mark value. No answers, hints, formulas, or solutions are included
in this paper.
MODULE III - DATABASE QUERYING AND ADVANCED SQL
2 Marks
1. What is a view in SQL?
2. What is a nested subquery?
3. What is a correlated subquery?
4. What is the use of the GROUP BY clause?
5. What is the purpose of the HAVING clause?
6. What are aggregate functions in SQL?
7. What is an inner join?
8. What is an outer join?
9. What is a trigger in SQL/PLSQL?
10. Differentiate WHERE and HAVING clauses.
5 Marks
1. Write SQL queries using GROUP BY, HAVING, ORDER BY and aggregate functions for a given
relational schema.
2. Write SQL queries using nested and correlated subqueries for a given database schema.
3. Explain the different types of joins with suitable SQL queries.
4. Write SQL queries using UNION, INTERSECT and EXCEPT for a given schema.
5. Write SQL queries using IN, ANY, ALL, EXISTS and NOT EXISTS.
6. Create a view for a given database requirement and write SQL queries using the view.
7. Write a PL/SQL procedure and function for a specified database operation.
8. Write a trigger for a specified INSERT, UPDATE or DELETE event.
9. Given tables and sample tuples, determine the output of SQL queries involving joins, grouping
and HAVING.
8 Marks
1. Given Student, Course and Enrollment relations, write SQL queries involving joins, nested
queries, aggregate functions, GROUP BY and HAVING.
2. Compare nested subqueries and correlated subqueries and write suitable SQL statements for a
given problem.
3. Given a set of tables and sample rows, determine the output of SQL statements containing joins,
subqueries, grouping and aggregate functions.
4. Design a database solution using a view, stored procedure, function and trigger for a given
application.
5. Write equivalent SQL queries using joins and subqueries for the same information-retrieval
requirement.