VTU Computer Science (Semester 5)
Database Management Systems
June 2014
Total marks: --
Total time: --
INSTRUCTIONS
(1) Assume appropriate data and state your reasons
(2) Marks are given to the right of every question
(3) Draw neat diagrams wherever necessary


1 (a) What is database? Explain the implicite properties of database.
8 M
1 (b) With a neat diagram, explain "three schema architecture"
8 M
1 (c) Define the following terms:
(i) Data model (ii) Schema (iii) Metadata (iv) Snapshot
4 M

2 (a) Explain with sketch the different phases of database design.
10 M
2 (b) Write an ER diagram of hospital management system. Assume your own entities (minimum 4), attributes and relations.
10 M

3 (a) What is constraint? Give the detailed explanation of key constraints.
10 M
3 (b) Consider the following schema and write the relational algebra expression for the queries given below:
Suppliers (Sid: integer, sname: string, address: string)
Parts (pid: integer, pname: string, color: string)
Catalog (Sid: integer, pid: integer, cost: real)
(i) Find the names of suppliers who supply some red parts.
(ii) Find the sids of suppliers who supply some red parts or at 221 packer street.
(iii) Find the sids of suppliers who supply some red part and some green part.
10 M

4 (a) Consider the same data given in questions 3(b) and write the following queries in SQL:
(i) Find the sids of suppliers who supply some red and some green parts.
(ii) Find the pairs of sides such that supplier with first sid charges more for some part than the supplier with second sid.
(iii) Find the pids of parts supplied by at least two different suppliers
10 M
4 (b) Write a note on NULL and three valued logic.
10 M

5 (a) Explain insert, delete and update statements in SQL, with example.
9 M
5 (b) How is a view created and dropped? What problems are associated with updating of views?
11 M

6 (a) State the informal guidelines for relational schema design. Illustrate how violation of these guidline may be harmful.
12 M
6 (b) What is normalization? Explain third normal form with example.
8 M

7 (a) Define multi valued dependency. Explain 4NF with an example.
10 M
7 (b) Let R={ Ssn, Ename, Pnumber, Pname, Plocation, Hours } and
D={ R1, R2, R3 }, where
R1=EMP = {Ssn, Ename}
R2 = PROJ = (Pnumber, Pname, Plocation)
R3 = WORKS_ON = { Ssn, Pnumber, Hours}.
THe following functional dependencies hold on relation R.
F = { Ssn ? Ename; Pnumber ? { Pname, Plocation}; {Ssn, Pnumber} ? Hours}.
Prove that the above decomposition of relation R has the lossless join property.
10 M

Write a short note on:
8 (a) Two phase locking protocol.
5 M
8 (b) Transaction support in SQL.
5 M
8 (c) Write ahead log protocol.
5 M
8 (d) Time stamp ordering algorithm.
5 M



More question papers from Database Management Systems
SPONSORED ADVERTISEMENTS