CS FundamentalsHardGATE CS
R(A, B, C, D, E) has functional dependencies AB → CDE, C → A and D → E. What is the highest normal form R satisfies?
- A. BCNF
- B. 3NF
- C. 2NF
- D. 1NF
Correct answer: C. 2NF
Candidate keys are AB and BC, so A, B and C are prime. C → A is allowed in 3NF because A is prime. But D → E has a non-key left side and non-prime right side, a transitive dependency, so R is not in 3NF; there is no partial dependency of a non-prime attribute on part of a key, so it is in 2NF.
More DBMS and SQL questions
- R(A, B, C, D, E) has functional dependencies BC → A, A → B, D → E and E → D. How many candidate keys does R have, and what is its highest…
- A clinic stores Booking(patient, specialty, doctor). Each doctor has exactly one specialty, and each patient sees exactly one doctor per…
- Which serial order is conflict-equivalent to the schedule R2(A), R1(B), W3(A), W1(C), R3(C), R4(B), W4(A)?
- Classify the schedule R2(X), W1(X), W2(X), W3(X) (all transactions commit afterwards).
- Classify the schedule W1(X), W2(X), R3(X), C3, C1, C2 (Ci = commit of Ti).
- Timestamp ordering with Thomas's write rule: TS(T1) = 5, TS(T2) = 10, TS(T3) = 15, and all read/write timestamps start at 0. The…