CS FundamentalsHardGATE CS · Amazon/Microsoft placement
R(A, B, C, D, E, F) has functional dependencies B → C, AF → E, AC → E, CE → A. How many prime attributes does R have?
- A. 4
- B. 3
- C. 6
- D. 5
Correct answer: D. 5
The candidate keys are {ABDF, BDEF}, so the prime attributes (those in at least one candidate key) are ABDEF, giving 5. Counting only one key's attributes undercounts.
More DBMS and SQL questions
- R(A, B, C, D, E) has functional dependencies E → AB, A → D, D → BE. Which decomposition of R is lossless-join?
- TS(T1) = 30, TS(T2) = 20, TS(T3) = 10; all read/write timestamps start at 0. Under basic timestamp ordering (no Thomas write rule), which…
- Table Sale(id, rep, region, amt) rows: (1, 'Ira', 'N', 100), (2, 'Jai', 'S', 250), (3, 'Ira', 'S', NULL), (4, 'Kim', 'N', 300), (5, 'Jai'…
- R(A, B) = {(a1, b2), (a1, b3), (a2, b2), (a2, b3), (a3, b1), (a3, b3), (a4, b1), (a4, b2), (a4, b3)} and S(B) = {b1, b2}. What is R ÷ S?
- Classify the schedule R3(A), R3(B), W1(A), R1(A), C3, R2(A), C1, W2(B), W2(A), C2 (Ci = commit of Ti) by the strongest property it…
- Consider the schedule W1(A), R1(B), W2(A), R1(A), R3(B), W3(A), R2(A). Which statement is correct?