CS FundamentalsEasyAccenture · Capgemini pattern
A relation is in 2NF if it is in 1NF and:
- A. It has no multivalued dependency
- B. No non-prime attribute is functionally dependent on a proper subset of any candidate key
- C. Every determinant is a candidate key
- D. It has no transitive dependency of a non-prime attribute on a key
Correct answer: B. No non-prime attribute is functionally dependent on a proper subset of any candidate key
2NF removes partial dependencies. Removing transitive dependencies gives 3NF; 'every determinant is a candidate key' is BCNF; multivalued dependencies are 4NF.
More DBMS and SQL questions
- R(A, B, C, D) has functional dependencies A → B and B → C. What is the candidate key of R?
- Which statement about a clustered index is correct?
- Table Emp(id, name, dept, salary, mgr) rows: (1, 'Asha', 'HR', 50000, NULL), (2, 'Ravi', 'IT', 70000, 1), (3, 'Meena', 'IT', 70000, 2)…
- Transaction T2 reads a value that T1 has written but not yet committed; T1 later rolls back. What is this anomaly called?
- Table Emp(id, name, dept, salary, mgr) rows: (1, 'Asha', 'HR', 50000, NULL), (2, 'Ravi', 'IT', 70000, 1), (3, 'Meena', 'IT', 70000, 2)…
- A candidate key is best described as: