Code No: RR321903
Set No. 2
III B.Tech II Semester Supplimentary Examinations, Aug/Sep 2007DATA BASE MANAGEMENT SYSTEMS(Electronics & Computer Engineering)Time: 3 hours Max Marks: 80Answer any FIVE QuestionsAll Questions carry equal marks
⋆ ⋆ ⋆ ⋆ ⋆
1. (a) What is an unsafe query ? Give an example and explain why it is importantto disallow such queries. [6](b) Consider the following schema given. The primary keys are underlined. PROJECT(ProjectnProject Name, Chief Architect)EMPLOYEE( Empnum, Empname)ASSIGNED TO(Projectnum, Empnum)Write the following queries in Tuple relational calculusi. Find Empnum of employees working on project COMP454ii. Find the details of employees(both number and name) working on theproject COMP365iii. Find the details of employees working on the ”Database” projectiv. Find the Empnum?s of employees who do not work on project COMP464v. Find the Empnum?s of employees who work on all projects [1+2+2+2+3]2. (a) What are views? Discuss the problems encountered in modifying databasethrough views.(b) What is an embedded SQL? Give examples. [10+6]3. (a) Construct a B tree of order 2 to maintain the keys 1,9,8,6,4,5 and 10.(b) Show how 4 is replaced by 7 in the tree constructed in the above question.[8+8]4. (a) Explain about projection based on sorting.(b) Explain about projection based on hashing. [8+8]5. Show that the following equivalences hold and explain how they can be applied toimprove the efficiency of certain updates.(a) (
r
1
∪
r
2)
∪
r
3 =
r
1
∪
(
r
2
∪
r
3)(b)
r
1
∪
r
2 =
r
2 =
r
2
∪
r
3(c)
σ
p
(
r
1
−
r
2) =
σ
p
(
r
1)
−
σ
p
(
r
2) [5+4+7]6. (a) Use the axioms for functional and multivalued dependencies to show that thefollowing rules are soundi. the multivalued union rule1 of 2
Leave a Comment