MU Computer Engineering (Semester 4)
Database Management Systems
May 2013
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) Galleries keep information about artists, their names (which are unique), birthplaces, age and style of art. For each piece of the artwork the artist, the year it was made, its unique title, its type of art, (e.g. painting, sculpture photograph) and its price must be stored. Pieces of artwork are also classified into groups of various kinds e.g. portraits, still life work by Picasso or works of 19th century; a given piece of work may be long to more than one group.
Each group is identified by a name (like those given) that describes the group. Galleries keep info about customer's like persons (unique name, address, total amount spent and the artist and group of all that customer like.

Draw the ER diagram for the database.
8 M
1 (b) For the above database:
Explain the rules to map E-R schema to relations.
6 M
1 (c) For the above database:
Explain Conflict Seriliazibility.
6 M

2 (a) Company manufactures ranges of products which are purchased by customers. The relational schema for this operation is given as:
Company (company-code, cname, Director#.
Director-name, {product-name, cost { cost#,
Customer name, address} }) where {...} represents the repeating groups.
(i) State the definitions of 1NF, 2NF and # NF.
(ii) Normalise the above relation to 3NF.
12 M
2 (b) Explain 2PL protocol.
8 M

3 (a) What is recoverable schedule? Why recoverability of schedule is desirable? Explain checkpoint based recovery mechanism.
10 M
3 (b) What is the condition for lossless de-composition of a relation? Give Example.
5 M
3 (c) Explain Trigger with example.
5 M

4 (a) EMP (eid : Integers, ename : string, age : interger, salary : real)
Works (eid : integer, did : integer, pctime : integer)
DEPT (did : integer, dname : string, budget : real, managerid : integer)
(i) Write SQL statement to create Works relation.
Add Ram as an employee with eid = 101 , age = 32, salary = 75000.
(iii) Give every employee 10% rise.
(iv) Find total no of employees working in department = Computer
(v) Arrange employees in descending order of their salary.
10 M
4 (b) Explain organization of records in files. In the sequential file organization, why is an overflow block used even if there is at a given point only one overflow record.
10 M

5 (a) What is a transaction? Explain ACID properties of a transaction.
10 M
5 (b) Explain data dictionary storage.
5 M
Solve any
one:-
5 (c) Give the structure of B+ tree.
5 M
5 (d) Explain static hashing.
5 M

6 (a) Explain UNDO and REDO operations for log based recovery. How are they used for recovery?
8 M
6 (b) Give one protocol that prevents deadlock
6 M
6 (c) Describe different methods of deadlock recovery.
6 M

Write short notes on (any four)
7 (a) Explain Views in SQL
5 M
7 (b) Keys and Referential Integrity
5 M
7 (c) Data Independence and its types
5 M
7 (d) Timestamp and ordering protocols
5 M
7 (e) Index definition in SQL
5 M



More question papers from Database Management Systems
SPONSORED ADVERTISEMENTS