DBMS Question Bank
DBMS Question Bank
QUESTION BANK
IV SEMESTER
Regulation – 2023
Prepared by
Ms.G.Santhiya/A.P-Sr.G/IT
Ms.S.Priya / A.P-O.G / IT
Ms.N.Jothi/AP/CYS
SRM VALLIAMMAI ENGINEERING COLLEGE
SRM Nagar, Kattankulathur – 603 203.
QUESTION BANK
SEM / YEAR: IV / II
UNIT I-INTRODUCTION TO DATABASES AND SQL
Purpose of Database System – View of data –Database and Application Architecture-Database
Administrator– Introduction to Relational model – Structure of Relational Database- Database Schema-
Keys – Schema diagram –Introduction to SQL- SQL Data Definition –basic Structure of SQL Queries-
Additional Basic operation- Set operation-Null Values- Aggregate Function- Modification of the Database-
Intermediate SQL –Join operation-Transactions-Integrity constraints- Trigger.
PART A
1. 1 Design a database system for a hospital management system (HMS) BTL3 Analyzing
that addresses the main purposes of a database system such as data
storage, data retrieval, data integrity, security, and concurrency
control
2. Analyze the different views of a database system (internal,
conceptual, and external) and how each view contributes to the BTL4 Applying
overall design and functionality of the database. Compare and
contrast the advantages and limitations of these views .
3. Explain in detail about the structure of Database Management BTL5 Evaluating
System.
4. Demonstrate in detail about types of DBMS Architecture
BTL4 Analyzing
5. Determine the roles and responsibilities of a Database Administrator BTL4 Analyzing
(DBA) in the management and operation of Database Management
System (DBMS).
6. Examine how the database schema serves as a blueprint for the BTL4 Analyzing
database. Discuss its role in organizing data and defining the
relationships between tables. How does the schema ensure data
consistency and integrity in a relational database?
7. Examine the various types of keys—primary keys, foreign keys, BTL4 Analyzing
candidate keys, and composite keys—and their roles in maintaining
data integrity and enabling efficient querying. Discuss how keys
relate to the normalization process and contribute to reducing
redundancy and ensuring referential integrity.
8. Evaluate the importance of schema diagrams in understanding and BTL4 Understanding
documenting a relational database. How do schema diagrams
represent relationships between tables, and why are they essential
for both database design and communication with developers and
stakeholders?
9. Evaluate the basic structure of SQL queries and the effectiveness of BTL5 Evaluating
SQL in various types of database operations. Discuss the key
components of SQL queries, including the SELECT, FROM,
WHERE, GROUP BY, HAVING, and ORDER BY clauses.
10. Analyze the types of Database schema and Database Schema BTL4 Analyzing
Designs.Evaluate the importance of a database schema in relational
database design.
11. Explain the types of Triggers. Discuss how triggers work by in a BTL4 Analyzing
database. Using a real-world example, evaluate the advantages and
potential challenges of implementing triggers in a database.
12. Apply the concept of integrity constraints in relational database BTL3 Applying
design and explain the different types of integrity constraints with
example
13. Design a relational database for a Library Management System BTL6 Creating
(LMS) using SQL Data Definition Language (DDL). Your design
should include multiple tables to store data related to books,
members, and transactions
In your design, create the following:
i) Table Definitions: Using SQL, create tables for:
• Books: Attributes should include Book ID, Title, Author,
ISBN, and Genre.
• Members: Attributes should include Member ID, Name,
Email, Phone Number, and Membership Date.
• Transactions: Attributes should include Transaction ID,
Member ID (Foreign Key), Book ID (Foreign Key), Issue
Date, Return Date, and Due Date.
ii) Constraints and Integrity: Define appropriate constraints,
including:
• Primary keys for each table.
• Foreign keys for relationships between tables.
• Not null constraints where necessary.
• Check constraints on fields like ISBN (valid format) and
Due Date (should be after Issue Date).
iii) SQL Queries for Data Manipulation: Write SQL queries to:
• Insert sample data into the tables.
• Update the return date of a specific transaction.
Delete a member record, ensuring that their transactions are also
handled appropriately (cascading effect).
14. List and explain the properties of Transaction. Discuss how SQL BTL4 Analyzing
transactions are used to maintain data consistency. Provide
examples of how transactions are used in real time applications.
15. Consider the employee database, where the primary keys BTL3 Applying
underlined.employee(empname,street,city)works(empname,compa
nyname,salary)company(companyname,city)manages(empname,m
anagement)
Give an expression in the relational algebra for each request.
1) Find the names of all employees who work for First Bank
Corporation.(5)
2) Find the names, street addresses and cities of residence of all
employees whowork for First Bank Corporation and earn more than
200000 per annum.(5)
3) Find the names of all employees in this database who live inthe
same city as the company for which they work.(6)
16. Evaluate the use of SQL aggregate functions (COUNT, SUM, AVG, BTL5 Evaluating
MAX, MIN) in analyzing data from a relational database. Create a
set of queries using these aggregate functions to solve a practical
problem in a real-world scenario. What is the impact of using
aggregate functions in large datasets and handling NULL values
17. Create a complex SQL query involving multiple JOIN operations to
BTL6 Creating
retrieve data from several related tables in a relational database. In
your solution, demonstrate the application of INNER JOIN, LEFT
JOIN, RIGHT JOIN, and FULL OUTER JOIN. Additionally,
explain the logic behind each JOIN type and how it impacts the
result set. Design a real-world scenario and create SQL queries to
extract meaningful insights from the data.
UNIT II - DATABASE DESIGN
Entity-Relationship model — E-R Diagrams — Enhanced-ER Model — ER-to-Relational Mapping —
Functional Dependencies — Non-loss Decomposition — First, Second, Third Normal Forms, Dependency
Preservation — Boyce/Codd Normal Form — Multi-valued Dependencies and Fourth Normal Form —
Join Dependencies and Fifth Normal Form.
PART – A
Q.No Question Level Competence
1 Define Functional Dependency. BTL2 Understanding
2 Discuss about 2NF. BTL2 Understanding
3 Define Normalization. BTL2 Understanding
4 Define Entity – Relationship Model. BTL1 Remembering
5 List the properties of decomposition. BTL2 Understanding
6 State the advantage of the First Normal Form. BTL1 Remembering
7 Show the disadvantage of the Second Normal Form. BTL2 Understanding
8 List the anomalies of 1NF. BTL1 Remembering
9 Assess the significance of cardinality ratio. BTL2 Understanding
10 Discuss about BCNF. BTL2 Understanding
11 Define 3 Normal Form. BTL1 Remembering
12 Write about transitive functional dependency. BTL1 Remembering
13 Design a Database to illustrate BCNF. BTL1 Remembering
14 Which normal form is considered adequate for normal relational BTL1 Remembering
databasedesign?
15 Consider the relation scheme R (A, B, C) R (A, B, C) with the
following functionaldependencies: BTL2 Understanding
A, B→CC→AA, B→CC→A
Show that the scheme RR is the Third Normal Form (3NF) but not
in Boyce-Code Normal Form (BCNF).
16 What is the output of following statement? BTL2 Understanding
σsubject = "database"(Books)
17 Design a Database to illustrate 3NF. BTL1 Remembering
18 Define trivial dependency? BTL2 Understanding
19 What is meant by computing the closure of a set of functional BTL1 Remembering
dependency?
20 What is weak entity? Give Example. BTL2 Understanding
21 Define 4th normal Form. BTL2 Understanding
22 Evaluate the issues faced in 3rd normal form. BTL2 Understanding
23 Discuss Lossless Decomposition? BTL2 Understanding
24 Define Join Dependency. BTL2 Understanding
PART – B
Q.No Question Level Competence
1 Illustrate with an example what is meant by partial functional BTL5 Evaluating
dependencyand describe how this type of dependency relates to
2NF. (16)
2 (i) Develop an E-R diagram for a car-insurance company whose BTL6 Creating
customers ownone or more cars each. Each car has associated with it
zero to any numberof recorded accidents. State any assumptions you
make. (6)
(ii) A university registrar’s office maintains data about following
entities:
(iii) 1)Courses, including number, title, credits,
syllabus, and prerequisites;
2) Course offerings, including course number, year,
semester, sectionnumber,instructor, timings and classroom;
3) Students, including studentid, name, and program;
and Instructors, including identification number, name, department,
and title. Further, the enrollment of students in courses and grades
awarded to students in each course they are enrolled for must be
appropriately modeled. Constructan E-R diagram for the registrar’s
office. Document all assumptions that you
make about the mapping constraints. (10)
3 Determine about 3NF and BCNF with relevant table structure. (16) BTL5 Evaluating
4 Illustrate the multi-value dependency and the fourth normal form- BTL3 Applying
4NF with anexample (16)
(i) Compare the features of file system with database system. (6) BTL5 Evaluating
5 (ii) Explain the differences between physical level, conceptual
level andview level of data abstraction. (5)
(iii) Write short note on attributes of an entity. State an example. (5)
6 Illustrate in detail, the join dependency and the fifth normal form- BTL3 Applying
5NF. (16)
7 Explain Functional dependency and trivial functional BTL5 Evaluating
dependency with examples.(16)
8 For the following relation R and set of functional dependencies
F:R (A, B, C, D, E), F = {AC -> E, B->D, E-> A)}. Show all BTL3 Applying
candidatekeys. (16)
9 (i)Summarize the term anomalies. Explain BCNF in detail. (8) BTL5 Evaluating
(ii)Decide why BCNF is used and how it differs from 3NF.(8)
10 (i) Analyze about lossless Decomposition. (8) BTL4 Analyzing
(ii) Design your own database to illustrate 3NF.(8)
11 Illustrate what is meant by transitive dependency and describe how
this type of dependency relates to 3NF. Provide an example to BTL3 Applying
illustrate your answer.(16)
12 Determine about Functional Dependencies and its impact on the data BTL5 Evaluating
base.(16)
Illustrate in detail about the following
13 (i)Non loss decomposition. (8) BTL3 Applying
(ii)Lossy decomposition. (8)
Analyze the following: BTL4 Analyzing
14 (i) Join Dependencies. (8)
(ii) 5th Normal Form. (8)
15 Explain the following terms:
a. Fully functional Dependencies (8) BTL3 Applying
b. Transitive Dependencies (8)
16 Illustrate about schema refinement in database design.(16) BTL3 Applying
17 Explain the following: Multi-valued dependencies and Fourth normal BTL4 Analyzing
forms.(16)
UNIT-III - TRANSACTION AND CONCURRENCY CONTROL
Transaction Concepts – ACID Properties – simple transaction model– Transaction Atomicity and Durability –
Transaction Isolation –Serializability – Transaction Isolation and Atomicity –Concurrency Control – Lock based
protocols – Locking Protocols – Two Phase Locking – Deadlock –prevention– Deadlock Detection and Recovery
– Multiple Granularity – Timestamp–Based Protocols.
PART-A
Q.No Question Level Competence
1 Define transaction. BTL1 Remembering
2 Give the reasons for allowing concurrency. BTL2 Understanding
3 Analyze on average response time. BTL4 Analyzing
4 Evaluate the situation to roll back a transaction. BTL4 Analyzing
5 Discuss the term aborted state. BTL2 Understanding
6 Summarize the properties of transaction. BTL2 Understanding
7 What are the different modes of lock? BTL1 Remembering
8 Assess about Serializability. How it is tested? BTL5 Evaluating
9 Show the time stamps associated with each data item. BTL3 Applying
10 Demonstrate recoverable schedule with suitable example. BTL3 Applying
11 Recommend the need of shadow paging. BTL5 Evaluating
12 Generalize the type of locking needed for insert and delete
BTL6 Creating
operations.
13 Define deadlock. BTL1 Remembering
14 Design your own example to illustrate cascaded rollback. BTL6 Creating
15 List the phases of two-phase locking protocol BTL1 Remembering
16 Examine the use of lock compatibility matrix. BTL3 Applying
17 List the types of serializability. BTL1 Remembering
18 Give the states of transaction. BTL2 Understanding
19 Differentiate strict two-phase locking protocol and rigorous two-
BTL4 Analyzing
phase locking protocol.
20 Define upgrade and downgrade. BTL1 Remembering
21 Evaluate what is meant by concurrency control? BTL4 Analyzing
22 Give an example of two phase commit protocol. BTL2 Understanding
23 Show the four conditions for deadlock. BTL5 Evaluating
24 Brief about cascading rollback. BTL3 Applying
PART-B
10. Analyze about the index schemas used in databases. (16) BTL4 Analyzing
11. (i)Analyze about the B+ Tree file organization in detail. (6)
(ii) Identify a B+ tree to insert the following key elements (order of BTL4 Analyzing
the tree is 3) 5, 3, 4, 9, 7, 15, 14, 21, 22, 23. (10)
12. Examine the algorithms for SELECT and JOIN operations. (16) BTL4 Analyzing
13. (i)Explain in detail about optimization of disk block access. (8)
(ii)Generalize about mirrored (redundancy) RAID levels. (8) BTL6 Creating
Distributed Databases: Architecture, Data Storage— Object–based Databases: Object Database Concepts,
Object–Relational features, ODMG Object Model, ODL, OQL — XML Databases: XML Hierarchical
Model, DTD, XML Schema, XQuery — Information Retrieval: IR Concepts, Retrieval Models, Queries in
IR systems.
PART A
Sl.No Questions Level Competence