CS FundamentalsVery hardTCS Digital · Infosys
R(A, B, C, D, E) has the functional dependencies AB -> C, C -> D, D -> E and E -> A. How many candidate keys does R have?
- A. 4
- B. 1
- C. 3
- D. 5
Correct answer: A. 4
B is on no right side, so it is in every key. AB, BC, BD and BE each determine everything, and none shrinks further: 4 keys.
More DBMS and SQL questions
- Consider the schedule R1(A), W2(A), W1(A), W3(A). Which statement is correct?
- W(d, x) holds (1, 10), (2, 20), (2, 30), (3, 40). What value does SUM(x) OVER (ORDER BY d) give on the row (2, 20)?
- Under the SQL standard's isolation levels, which anomaly can still occur at REPEATABLE READ but is prevented at SERIALIZABLE?
- Which pair of properties must every primary key satisfy?
- Which ACID property guarantees that a transaction's changes are applied completely or not at all?
- Which of these SQL commands is a DDL (Data Definition Language) command?