Designing a Relational Database: A Library Example
Document Type: Conceptual Design Document / Case Study
Suggested Title: "Database Design 101: Planning Tables and Relationships for a Small
Library"
Content to Include:
o The Scenario: Describe the need to track books, authors, and members in a small
library.
o Planning the Tables: Explain that data should be separated into different subjects
to avoid redundancy. Propose a structure with these five tables:
1. Users: (UserID, FirstName, LastName, MembershipDate)
2. Books: (BookID, Title, PublicationYear, AuthorID)
3. Authors: (AuthorID, AuthorFirstName, AuthorLastName)
4. Categories: (CategoryID, CategoryName)
5. Loans: (LoanID, UserID, BookID, DateBorrowed, DateReturned)
o Defining Relationships: Explain how to connect these tables in the Relationships
window.
A one-to-many relationship between Authors and Books (one author can
write many books).
A one-to-many relationship between Users and Loans.
A one-to-many relationship between Books and Loans.
Explain the concept of Referential Integrity to keep data consistent (e.g.,
you can't have a loan for a book that doesn't exist) .
o The Result: Describe how this design makes the database efficient and flexible