CS FundamentalsHardIBM · Deloitte pattern
A relation R(A, B, C, D) has candidate key AB. If C and D are both non-prime, and B → C holds (B alone, part of the key, determines C), while C → D also holds, which statement is true?
- A. R is NOT in 2NF, because B → C is a partial dependency (B is a proper subset of the key AB); the transitive C → D is then a 3NF-level concern that is moot once 2NF already fails
- B. R is in 3NF but not 2NF, which is logically impossible since 3NF implies 2NF
- C. R satisfies BCNF despite the partial dependency
- D. R is in 2NF already, so B → C cannot be a problem
Correct answer: A. R is NOT in 2NF, because B → C is a partial dependency (B is a proper subset of the key AB); the transitive C → D is then a 3NF-level concern that is moot once 2NF already fails
Since AB is the only candidate key, B → C is a classic partial dependency (a proper, non-empty, non-key-determining subset B of the key determines non-prime C), which directly violates 2NF. Because 3NF logically requires 2NF to already hold, once 2NF fails, R cannot be 3NF or BCNF either, making the separate C → D transitive issue a secondary concern.
More DBMS and SQL questions
- A query optimizer estimates the selectivity of WHERE age = 30 using a histogram on the age column rather than assuming a uniform…
- A table has 1,000,000 rows, and a column's selectivity (distinct values / total rows) is estimated as 1/100,000. Roughly how many rows…
- A B+ tree index on a column is said to have a 'fan-out' of 100 (each internal node has up to 100 children). For a table with 10,000,000…
- Which of these is the best reason a database might choose to use a bitmap index rather than a B+ tree index on a column?
- Two transactions, T1 and T2, both want to update the same row. T1 acquires a shared (read) lock, then later tries to upgrade to an…
- A query uses SELECT ... FOR UPDATE to explicitly lock the rows it reads within a transaction. What is the main purpose of this, compared…