Question Bank DBMS
Question Bank DBMS
Q2. What do you mean by database management system? Explain its advantages and
disadvantages over file system.
Q3. Discuss the differences between the candidate keys, primary key and super key of a relation.
Give example to illustrate your answer.
Q4. Explain with the help of example following operations (in Relational Algebra) :
join, union, minus, cartesian product, natural join
Q6. What do you mean by a schedule? Explain the difference between conflict serializable
schedule and view serializable schedule with suitable examples. Check whether given schedule
is conflict serializable or non conflict serializable.( By drawing precedence graph)
T1 T2 T3
R1(X)
R3(X)
W1(X)
R2(X)
W3(X)
Q7. What is the difference between BCNF and Third Normal form ? List all the functional
dependencies satisfied by relation shown below:
A B C
A1 B1 C1
A1 B1 C2
A2 B1 C1
A2 B1 C3
Q8. Draw E-R diagram for Library Management System. Assume entity sets, attributes &
relationship by yourself.
Q10. Let R= (A,B,C) and let r1 and r2 both be relations on schema R. Give an expression in the
SQL that is equivalent to each of the following:
i) ∏ B (r2)
ii) σ A=20 (r2)
iii) r1 U r2
iv) r1 – r2
Q11. Define and explain 4th and 5th normal forms with the help of examples.
Q12. What are the ACID properties of a transaction? How are these useful?
Q14. What are different aggregate functions used in SQL. Explain at least two with the help of
examples.
Q15. State the condition when two schedules are considered as View Equivalent. State, whether
the following schedule is view serializable. Justify your answer.
T1 T2 T3
Read(A)
Write(A)
Write(A)
Write(A)
(i) List the name and comments of all renters who have viewed a property.
(ii) Identify all renters who have viewed all properties with three rooms.
Q20. Explain the SQL operators BETWEEN-AND, IN, LIKE and IS_NULL by taking suitable
examples.
(a) Define the above relations as tables in SQL making real world assumptions about the type of
the fields. Define the primary keys and the foreign keys.
(b) For the above relations answer the following queries in SQL
i) What are the titles of the books borrowed by the borrower whose id-no in 365.
ii) Find the numbers and names of borrowers who have borrowed books on DBMS in
ascending order in id-no.
iii) List the names of borrowers who have borrowed at least two books.