CS FundamentalsHardProduct-company MCQ pattern
A relation R(A, B, C, D) has candidate key ABD (the ONLY candidate key) and FD AB → C (C is non-prime). Which normal form violation does this represent?
- A. A 3NF violation only, not 2NF
- B. A 4NF violation involving a multivalued dependency
- C. No violation; this is perfectly fine for BCNF
- D. A 2NF violation — partial dependency, since AB is a proper subset of the key ABD and determines the non-prime C
Correct answer: D. A 2NF violation — partial dependency, since AB is a proper subset of the key ABD and determines the non-prime C
AB is a proper, non-empty subset of the sole candidate key ABD, and AB → C has C as a non-prime attribute — textbook partial dependency, a 2NF violation. Since 3NF and BCNF both require 2NF as a baseline, this relation also fails 3NF and BCNF as an automatic consequence.
More DBMS and SQL questions
- A query optimizer must decide between two equivalent plans for A JOIN B: (1) nested-loop join using an index on B, with A as the outer…
- A relation R(A, B, C, D, E) has FDs AB → C, C → DE. Which of the following is the candidate key, and how many non-prime attributes does R…
- 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?
- In an ER model, a weak entity set is identified by: