CS FundamentalsHardGATE
R(A, B, C, D) has functional dependencies AB → C, AC → D. What are the candidate key(s) of R?
- A. ABC
- B. AB
- C. ABCD
- D. BCD
Correct answer: B. AB
Computing each candidate attribute set's closure under AB → C, AC → D, the minimal sets whose closure is all of {ABCD} are: AB.
More DBMS and SQL questions
- Table Products(pid, pname, category, price, stock) rows: (1, 'Pen', 'Stationery', 10, 100), (2, 'Notebook', 'Stationery', 50, 0), (3…
- Table Sales(sid, pid, qty, saledate, cust) rows: (101, 1, 10, ...), (102, 3, 1, ...), (103, 2, 5, ...), (104, 5, 2, ...), (105, 4, 3…
- Table Products(pid, pname, category, price, stock) rows: (1, 'Pen', 'Stationery', 10, 100), (2, 'Notebook', 'Stationery', 50, 0), (3…
- Table Products(pid, pname, category, price, stock) rows: (1, 'Pen', 'Stationery', 10, 100), (2, 'Notebook', 'Stationery', 50, 0), (3…
- Table Products(pid, pname, category, price, stock) rows: (1, 'Pen', 'Stationery', 10, 100), (2, 'Notebook', 'Stationery', 50, 0), (3…
- Table Sales(sid, pid, qty, saledate, cust) rows: (101, 1, 10, '2024-01-05', 'Asha'), (102, 3, 1, '2024-01-06', 'Ravi'), (103, 2, 5…