QUESTIONSBANK-DBMS
QUESTIONSBANK-DBMS
UNIT-I
UNIT-II
An instance of S3 of Sailors
Sid Sname Ratin Age
g
22 Dustin 7 45.0
29 Brutus 1 33.0
31 Lubber 8 55.5
32 Andy 8 25.5
58 Rusty 10 35.0
64 Horatio 7 35.0
71 Zorba 10 16.0
74 Horatio 9 35.0
85 Art 3 25.5
95 Bob 3 63.5
An instance of R2 of Reserves
Sid Bid Day
22 101 10/10/9
8
22 102 10/10/9
8
22 103 10/8/98
22 104 10/7/98
31 102 11/10/9
8
31 103 11/6/98
31 104 11/12/9
8
64 101 9/5/98
64 102 9/8/98
74 103 9/8/98
An instance of B1 of Boats
Bi Bname Colo
d r
10 Interlak Blue
1 e
10 Interlak Red
2 e
10 Clipper Gree
3 n
10 Marine Red
4
An instance of R2 of Reserves
Sid Bid Day
22 101 10/10/9
8
22 102 10/10/9
8
22 103 10/8/98
22 104 10/7/98
31 102 11/10/9
8
31 103 11/6/98
31 104 11/12/9
8
64 101 9/5/98
64 102 9/8/98
74 103 9/8/98
An instance of B1 of Boats
Bi Bname Colo
d r
10 Interlak Blue
1 e
10 Interlak Red
2 e
10 Clipper Gree
3 n
10 Marine Red
4
a)Find the names of sailors who have reserved a red boat
b)Find the names of the Sailors who have reserved at least one boat.
c)Find the ages of sailors whose name begins and ends with B and has at least 3
characters.
d)Find the names of sailors who have reserved a red and a
green boat.
e)Find the sailors with the highest rating.
UNIT-III
1. Explain about the different DML commands with examples. [ BTL3, CO3]
2. Explain the following Operators in SQL with examples: [ BTL3, CO3]
3. What is the need for schema refinement? Explain third and fourth normal
forms with examples.[ BTL3, CO3]
9. Consider the following database schema and answer the following queries. [
BTL4, CO3]
Student (Snum: integer, Sname : string, major: string, level: string, age: integer)
10. Discuss different types of aggregate operators with examples in SQL.[ BTL2, CO3]
11. Explain different types of joins with example queries.[ BTL3, CO3]
12. Explain about Multivalued Dependencies with an example. Compare 3NF and
BCNF.[ BTL3, CO3]
UNIT IV
UNIT V