Database Management System Question Bank
Database Management System Question Bank
Database Management System Question Bank
Question Bank
UNIT 1
1. Design an ER diagram for keeping track of the exploits of your favorite sports team. You should
store the matches played, the scores in each match, the players in each match, and individual player
statistics for each match. Summary statistics should be modeled as derived attributes.
3. Construct E-R diagram for a hospital with set of patients and set of medical doctors. Associate with
each patient to a log of the various tests and examinations conducted
2. What is data independence? Differentiate between physical & logical data independence
2. Explain the advantages of Database management system over file processing system
5. Explain how a database management system is more advantageous than file processing system.
8. Describe the architecture of Database System and explain each component in the system.
9. Explain the major difference between a weak and strong entity set. Explain giving example
10. Enlist four significant differences between a file processing system and a DBMS
UNIT 2
1. Consider the database where primary keys all underlined Construct SQL queries for the following.
i) Find the names of all employees who work for first Bank corporation.
ii) Find the names and cities of residence of all employees who work for first Bank corporation.
iii) Find the names and cities of residence of all employees who work for first Bank corporation and
earn more than $10,000.
iv) Find all employees in the database who live in the same cities as the companies for which they
work.
i) Find the names of sailors who have reserved a red and green boat.
ii) Find the names of sailors who have reserved at least one boat.
iii) Find all sids of sailors who have a rating of 10 or have reserved boat 104
iv) Find sailors whose rating is better than some sailor called Horatio.
7. Consider the employee database where the primary keys are underlined. Construct the relational
algebra queries for this relational database:
i) Find the names of all employees who work for First Bank Corporation.
ii) Find the names and cities of residence of all employees who work for First Bank Corporation.
iii) Find the names, street addresses, and cities of residence of all employees who work for First Bank
Corporation and earn more than $10,000.
iv) Find all employees in the database who live in the same cities as the companies for which they
work.
8. Suppose that we have a relation marks (student-id, score) and we wish to assign grades to student
based on the scores as follows:
UNIT 3
2. Define the term Normalization. Why it is necessary to decompose the relation into several
relations? Explain with example
The sum of all loan amounts for each branch must be less than the sum of all account balances at the
branch
4. What is assertion? Give SQL construct for assertion and explain with examples.
borrower(customer-name, loan_number)
Give SQL DDL definitions for above relations. Identify referential-integrity constraints that should be
hold and include them in DDL definition (Assume Banking database).
9. Explain with suitable example a relation is said to be in INF, 2NF & BCNF
UNIT 4
1. Give and explain merge join Algorithm for computing the join operation
5. Describe the steps involved in query processing. Explain the functionality of each step.
2. What is serializability? Explain the distinction between serial schedule and serializable schedule.
4. Define Transaction. What are the properties of transaction? Explain with the help of example.
5. What are the different states that every transaction enters into, and if a transaction aborts? What
action a system initiates?
UNIT 6
3. Draw the architecture of remote backup system and explain several issues in designing a remote
backup system
T31: read(A);
read (B);
if A = 0 then B: = B + l;
write (B)
read (A);
if B = 0 then A :=A + 1;
write (A)
Add lock and unlock instructions to transactions T31 and T32, so that they observe the two phase
locking protocol. Can the execution of these transactions result in deadlock.