Question Paper 1
Section A: Short Answer Questions (5 Marks Each)
1. Define a relational database. Explain its structure with an example.
2. Write the syntax of SELECT and PROJECT operations in relational algebra.
3. What is tuple relational calculus? Explain with an example.
4. Explain the concept of null values in SQL. How are they handled?
5. Define referential integrity and provide a real-world example.
Section B: Long Answer Questions (10 Marks Each)
6. Differentiate between relational algebra and relational calculus. Provide examples for
each.
7. What are nested subqueries in SQL? Write an SQL query using a nested subquery to
fetch the names of employees earning more than the average salary.
8. Explain the aggregate functions in SQL with examples.
9. Write short notes on:
○ Data Definition Language (DDL)
○ Dynamic SQL
Section C: Case Study/Problem-Solving (15 Marks Each)
10. Design a database schema for a university system and write SQL queries to:
○ Find the names of students enrolled in more than three courses.
○ List the names of professors who teach the "Database Management System"
course.
11. Explain triggers in SQL. Write a trigger to prevent the insertion of an employee record if
the salary is less than ₹20,000.
Question Paper 2
Section A: Short Answer Questions (5 Marks Each)
1. What are extended relational algebra operations? List and explain any two.
2. Write the difference between domain relational calculus and tuple relational
calculus.
3. Explain the purpose of views in SQL. Provide an example.
4. What are set operations in SQL? Write a query using UNION.
5. Define domain constraints in relational databases with examples.
Section B: Long Answer Questions (10 Marks Each)
6. Discuss the fundamental operations of relational algebra with examples.
7. Explain the basic structure of SQL. Write a query to create a table and insert records.
8. What is embedded SQL? How is it different from dynamic SQL? Provide examples.
9. Write short notes on:
○ Referential Integrity
○ Aggregate functions
Section C: Case Study/Problem-Solving (15 Marks Each)
10. A company database contains tables: Employee(EmpID, Name, DeptID, Salary) and
Department(DeptID, DeptName). Write SQL queries for the following:
○ Find employees working in the "HR" department.
○ List departments with an average salary greater than ₹50,000.
11. Explain domain relational calculus with an example. Write queries to retrieve all
employees earning more than ₹30,000 using both domain relational calculus and
tuple relational calculus.
Question Paper 3
Section A: Short Answer Questions (5 Marks Each)
1. Explain triggers in relational databases with examples.
2. What are nested subqueries? Provide a query example.
3. Discuss the basic structure of SQL with an example query.
4. Write the differences between aggregate functions and set operations in SQL.
5. What are null values? How do they affect database queries?
Section B: Long Answer Questions (10 Marks Each)
6. Explain relational algebra with respect to SELECT, PROJECT, and JOIN operations.
Provide syntax and examples.
7. Write SQL queries to demonstrate the use of:
○ GROUP BY
○ HAVING
○ ORDER BY
8. Define the following terms with examples:
○ Data Definition Language (DDL)
○ Views
9. Write short notes on:
○ Tuple relational calculus
○ Extended relational algebra operations
Section C: Case Study/Problem-Solving (15 Marks Each)
10. Consider a database with tables: Student(StudentID, Name, Age, CourseID) and
Course(CourseID, CourseName, Instructor). Write SQL queries to:
○ List all students enrolled in "Database Systems".
○ Find the instructors teaching more than 2 courses.
11. Discuss referential integrity and how it can be enforced in SQL. Write an example
query to demonstrate the use of foreign key constraints.