CS FundamentalsVery hardGATE CS
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 normal form?
- A. 2 keys; 2NF
- B. 4 keys; BCNF
- C. 4 keys; 3NF
- D. 2 keys; 3NF
Correct answer: C. 4 keys; 3NF
C is in every key, plus one of A or B (A → B, BC → A) and one of D or E: ACD, ACE, BCD, BCE. Every attribute is prime, so R is in 3NF, but A → B and D → E have non-superkey left sides, so it is not in BCNF.
More DBMS and SQL questions
- 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…
- Timestamps: T1 = 10 (oldest), T2 = 20, T3 = 30. T2 holds an exclusive lock on X. First T1 requests X, then T3 requests X. Which is correct?