LOAN(LoanID, BookID, BookTitle, DateOut) has primary key LoanID. Every field holds one value. Is the table in 3NF? If not, give a 3NF design.
- Every field holds one value, so it is in 1NF. The primary key is a single field, so there is no partial dependency and it is in 2NF.
- BookTitle depends on BookID, and BookID is not the key. This is a non-key dependency, so the table is not in 3NF.
- Move the dependent field to its own table with BookID as the primary key, and keep BookID in LOAN as a foreign key.
Answer: Not in 3NF. Use LOAN(LoanID, BookID, DateOut) and BOOK(BookID, BookTitle).