|
General Clean Up resets the |
Person Table |
Book Table |
Documentation |
||
|
Note - Create, Drop and Clean Up would be
hidden on a real life system. |
|||||

This relationship, as it stands, is not normalised. If a person borrowed more than one book, they would have to be entered into the database more than once. To remove this defect, information about people must not appear in the books table and information about books must not appear in the people table.

This arrangement of tables allows the Person table to contain information about people and no other information. Likewise the Book table contains information about books and nothing else. The Loan table contains records with foreign key values that uniquely reference a single customer and a single book.
The diagram below shows the table structures and how they are linked. Business rules are encoded in the diagram such that

Even this structure is not properly normalised because, if an author writes more than one book, his or her information will be repeated in the book table and likewise for publishers publishing more than one book. As no complex author or publisher information is present in this database, this lack of normalisation is not a serious problem.