CS FundamentalsVery hardCapgemini · Cognizant GenC
The set F = {A -> BC, B -> C, A -> B, AB -> C} on R(A, B, C) is given. How many functional dependencies are there in a minimal (canonical) cover of F?
- A. 1
- B. 3
- C. 4
- D. 2
Correct answer: D. 2
Splitting gives A -> B, A -> C, B -> C, A -> B, AB -> C. A -> C follows from A -> B and B -> C, and AB -> C reduces to B -> C. The cover is {A -> B, B -> C}: 2 FDs.
More DBMS and SQL questions
- Basic timestamp ordering is used with timestamps TS(T1) = 1, TS(T2) = 2, TS(T3) = 3. The schedule on one item A is R2(A), W3(A), R1(A)…
- Relation R has 1,000 tuples with 100 distinct values of attribute A, and S has 500 tuples with 50 distinct values of A, all of which…
- A B+ tree is built so that every node is completely full: a leaf holds 100 keys and an internal node has 101 children. It indexes…
- 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?
- 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)?