You are on page 1of 3

Book table Student table

Book ID Primary key Student ID Primary key


Book name Name
Author Grade
Genre Section
ISBN Date the book was borrowed/bought x
Cost Gender
Date published Phone number
Publisher Email ID
Deliver date Book ID of the borrwed book/bought Foreign key
Book borrowed

1NF Rules 2NF Rules


Each table cell should contain a single value While in 1NF make a single column for primary key
Each record need to be unique Keeping the 1NF we indentify and create the prima
Staff table Fine Publishers
Saff ID Primary key Fine ID Primary key Publisher ID
Name Student ID Foerign key Book ID
Gender Staff ID Foreign key Name
Address Date of issue Gender
Phone Number Date of return Date of purchase
Email ID Cost of Fine (if any) Address
Borrowed book x Book ID Email ID
Book ID of the broowed book/bought Foreign key Phone number
ISBN number

3NF rules
While in 1NF make a single column for primary key Trainsitive functional dependicies is when changing
eeping the 1NF we indentify and create the primary and foreign key Keeping the 2NF ensure there are no transitive func
Primary key
Foerign key

al dependicies is when changing a non-key column which might cause any of th other non-key columns
sure there are no transitive functional dependicies, we can break down the table ensuring there are no repition of records

You might also like