Code No: R09220502 R09 Set No. 1
II B.Tech II Semester Examinations, APRIL - 2011
DATABASE
MANAGEMENT SYSTEMS
Common to ME, IT, MECT, AME, CSE, ECE
Time: 3 hours Max
Marks: 75
Answer any FIVE Questions
All Questions carry equal marks
*****
1. (a) Give a note on storage manager component of database system
structure.
(b) Make a comparison between Database system and File system. [7+8]
2. (a) How the Data is stored in External Storage?
(b) Explain file organization & indexing? [7+8]
3. (a) Construct an ER diagram for university registrar's office. The
office maintains data about each class, including the instructor, the
enrollment and the time and place of the class meetings. For each student
class pair a grade is recorded. Determine the entities and relationships.
(b) What is the composite attribute? How to model it in the ER
diagram? Explain with an example. [7+8]
4. Explain the difference between three storage types, Volatile,
Non-Volatile and Stable in terms of I/O cost. [15]
5. (a) Discuss about Tuple Relational Calculus in detail.
(b) Write the following queries in Tuple Relational Calculus for
following Schema.
Sailors (sid: integer, sname: string, rating: integer, age: real)
Boats (bid: integer, bname: string, color: string)
Reserves (sid: integer, bid: integer, day: date)
i. Find the names of sailors who have reserved a red boat
ii. Find the names of sailors who have reserved at least one boat
iii. Find the names of sailors who have reserved at least two boats
iv. Find the names of sailors who have reserved all boats. [7+8]
6. (a) Explain constraints on an Entity set.
(b) Explain constraints on a Relationship set. [7+8]
7. (a) Write the following queries in SQL using Nested queries
concept for following Schema.
Sailors (sid: integer, sname: string, rating: integer, age: real)
Boats (bid: integer, bname: string, color: string)
Reserves (sid: integer, bid: integer, day: date)
i. Find the names of sailors who have reserved both red and green
boat
ii. Find the names of sailors who have reserved all boats
iii. Find the names of sailors who have not reserved red boat
iv. Find sailors whose rating is better than some sailor called
raghu.
(b) What is a correlated nested query? Explain with an example.
[11+4]
8. Consider the following two transactions:
T1:
read(A);
read(B);
if
A=0 then B:= B + 1;
write(B).
T2:
read(B);
read(A);
if
B=0 then A:= A + 1;
write(A).
Let the consistency requirement be A=0 V B=0, with A=B=0 the initial
values.
(a) Show that every serial execution involving these two transactions
preserves the consistency of the Database?
(b) Show a concurrent execution of T1 and T2 that produces a non
serializable Schedule?
(c) Is there a concurrent execution of T1 and T2 that produces a
serializable Schedule? [5+5+5]
___________________
|