CSE 19CS4T03 Apr-2023
CSE 19CS4T03 Apr-2023
iii. Add a new accident to the database; assume any values for required
attributes.
iv. Delete the Mazda belonging to “John Smith”.
v. Update the damage amount for the car with license number “AABB2000”
in the accident with report number “AR2197” to $3000.
UNIT – IV
7 a Define normalization. Explain various normal forms. L CO4 [6M]
1
b Consider a relation R with attributes ABCDE. Let the following FDs be L CO4 [4M]
given: A -> BC, BC -> E, and E->DA. Similarly, let S be a relation with 3
attributes ABCDE and let the following FDs be given: A -> BC, B -> E, and
E ->DA. Answer the following:
i. Is R in BCNF?
ii. Is R in 4NF?
iii. Is R in 3NF?
iv. Is S in BCNF?
v. Is S in 4NF?
(OR)
8 a Explain various anomalies to be handled by normalization with an example. L CO4 [5M]
3
b Explain Boyce-codd normal form with an example? L CO4 [5M]
1
UNIT – V
9 a S1: r1();r3(Y);r3(X);r2(Y);r2(Z); w3(Y);w2(Z);r1(Z);w1(X);w1(Z) L CO5 [5M]
S2: r1(X); r3(Y); r2(Y); r3(X); r1(Z); r2(Z); w3(Y); w1(X); w2(Z); w1(Z) 2
Analyze which one of the schedules is conflict-serializable?
b Following is the list of events in an interleaved execution is set T1, T2, T3 L CO5 [5M]
assuming 2PL. Is there a deadlock? If yes, which transactions are involved in 1
deadlock?
Time Transaction Code
T1 T1 Lock (A, X)
T2 T2 Lock (B, S)
T3 T3 Lock (A, S)
T4 T1 Lock (C, X)
T5 T2 Lock (D, X)
T6 T1 Lock (D, S)
T7 T2 Lock (C, S)
3 of 4
(OR)
UNIT – VI
11 a Consider a B+-tree in which the maximum number of keys in a node is 5. L CO6 [5M]
Calculate the minimum number of keys in any non-root node? 2
b How does multilevel indexing improve the efficiency of searching an index L CO6 [5M]
file? 2
(OR)
12 a Explain B+ trees? Discuss about this Dynamic Index Structure? L CO6 [5M]
2
b Can we have at most one primary or clustering index on a file, but several L CO6 [5M]
secondary indexes? Justify. 1
*****
4 of 4