Organizing a Library Database in Third Normal Form (3NF)
📖 Scenario: You are helping a small library organize its book records. The library currently stores all information in one big table, which makes it hard to update and causes repeated data. You will break this big table into smaller, well-structured tables following the Third Normal Form (3NF) rules.
🎯 Goal: Create three separate tables: Books, Authors, and Publishers. Each table should have the right columns so that data is not repeated and each fact is stored only once. This will make the library database easier to maintain and update.
📋 What You'll Learn
Create a table called
Books with columns BookID, Title, AuthorID, and PublisherID.Create a table called
Authors with columns AuthorID and AuthorName.Create a table called
Publishers with columns PublisherID and PublisherName.Use
AuthorID and PublisherID as foreign keys in the Books table to link to the other tables.Ensure each table has a primary key to uniquely identify each record.
💡 Why This Matters
🌍 Real World
Libraries, bookstores, and many businesses use normalized databases to keep their data clean and easy to update.
💼 Career
Database designers and developers must understand normalization to build efficient and reliable databases.
Progress0 / 4 steps