Docsity

RDBMS Question paper, Summaries of Relational Database Management Systems (RDBMS)

Toggle sidebar
bg1
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.
pf3
pf4
pf5

Partial preview of the text

Download RDBMS Question paper and more Summaries Relational Database Management Systems (RDBMS) in PDF only on Docsity!

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.

16 Marks

  1. Given a relational schema and sample data, write a complete set of advanced SQL queries using joins, nested queries, correlated queries, aggregate functions, GROUP BY, HAVING, set operators and EXISTS/IN.
  2. For a banking, railway-reservation or inventory database, formulate advanced SQL queries and determine the output relations for the given sample data.
  3. Develop an SQL/PLSQL solution for a database application using views, procedures, functions, cursors and triggers.
  1. Given a raw data table, identify missing, inconsistent, duplicate, noisy and irrelevant data and specify the appropriate preprocessing operations.

16 Marks

  1. Given a relation R and a set of functional dependencies, determine attribute closures, all candidate keys, prime and non-prime attributes, minimal cover, highest normal form, and a lossless dependency-preserving decomposition into 3NF or BCNF.
  2. Construct a B+ tree of a specified order for a given sequence of insertions and deletions, showing the tree structure after every operation.
  3. Compare B-tree, B+ tree, dense index, sparse index, multilevel indexing, static hashing and dynamic hashing for a specified database-access requirement.
  4. Given a complex relation with functional dependencies and multivalued dependencies, normalize it through the required normal forms and justify the decomposition.
  5. Given a raw dataset, identify data-quality problems and design a preprocessing sequence covering cleaning, transformation, integration and reduction.

MODULE V - TRANSACTION MANAGEMENT AND ADVANCED

APPLICATION

2 Marks

  1. List the ACID properties of a transaction.
  2. What is a serial schedule?
  3. What is conflict serializability?
  4. What is view serializability?
  5. What are the four necessary conditions for deadlock?
  6. What are the two phases of the Two-Phase Locking protocol?
  7. What is a recoverable schedule?
  8. What is a cascadeless schedule?
  9. What is multiple-granularity locking?
  10. What is timestamp ordering?
  11. What is shadow paging?
  12. What is log-based recovery?
  13. What is a checkpoint in database recovery?
  14. What is the ARIES recovery algorithm?
  15. What is a distributed transaction?
  16. What is the Two-Phase Commit protocol?
  17. What is CAP Theorem?

5 Marks

  1. Explain serial, non-serial, recoverable and cascadeless schedules with examples.
  2. Given a transaction schedule, test whether it is conflict serializable using a precedence graph.
  3. Differentiate conflict serializability and view serializability with suitable examples.
  4. Explain the basic Two-Phase Locking protocol and its variants.
  5. Differentiate Strict 2PL, Rigorous 2PL and Conservative 2PL.
  6. Explain the need for concurrency control and the major concurrency problems.
  7. Explain timestamp ordering with a suitable transaction example.
  8. Explain multiple-granularity locking with intention locks.
  9. Explain deadlock detection and deadlock prevention in database systems.
  10. Explain deferred and immediate database modification.
  11. Explain checkpointing and log-based recovery.
  12. Explain the major phases of ARIES recovery.
  13. Explain distributed transactions and the Two-Phase Commit protocol.

8 Marks

  1. Given a transaction schedule, construct the precedence graph and determine whether the schedule is conflict serializable.
  2. Given a schedule, determine conflict serializability and discuss whether it is view serializable.
  3. Explain Basic, Conservative, Strict and Rigorous 2PL using suitable transaction schedules.