CS FundamentalsEasyTCS NQT · Infosys interview pattern
A relation is in 2NF, but a non-key attribute depends on another non-key attribute (a transitive dependency on the key). Which normal form removes such dependencies?
- A. 1NF
- B. 2NF
- C. 3NF
- D. 4NF
Correct answer: C. 3NF
3NF requires that no non-prime attribute be transitively dependent on a key. 2NF only removes partial dependencies on part of a composite key; 4NF deals with multivalued dependencies.
More DBMS and SQL questions
- Which SQL command removes a table completely — its rows, its structure and its definition in the catalogue?
- Table Orders(id, cust, city, amount) rows: (1, 'Ana', 'Pune', 500), (2, 'Ben', 'Delhi', NULL), (3, 'Ana', 'Pune', 300), (4, 'Chen'…
- Table Orders(id, cust, city, amount) rows: (1, 'Ana', 'Pune', 500), (2, 'Ben', 'Delhi', NULL), (3, 'Ana', 'Pune', 300), (4, 'Chen'…
- Table Orders(id, cust, city, amount) rows: (1, 'Ana', 'Pune', 500), (2, 'Ben', 'Delhi', NULL), (3, 'Ana', 'Pune', 300), (4, 'Chen'…
- Transaction T1 reads a row, transaction T2 then updates that row and commits, and T1 reads the same row again and sees a different value…
- Table Orders(id, cust, city, amount) rows: (1, 'Ana', 'Pune', 500), (2, 'Ben', 'Delhi', NULL), (3, 'Ana', 'Pune', 300), (4, 'Chen'…