CS FundamentalsVery hardIBM · Deloitte pattern
R(A, B, C, D, E) has functional dependencies A → B, C → D, BD → E, giving candidate key(s) AC. How many superkeys does R have in total?
- A. 9
- B. 31
- C. 8
- D. 7
Correct answer: C. 8
Testing every non-empty subset of {ABCDE} (out of 31 total) for whether its closure covers all attributes gives exactly 8 superkeys.
More DBMS and SQL questions
- R(A, B, C, D) has functional dependencies AB → C, AC → D. What are the candidate key(s) of R?
- 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…