This project implements a Library Management System using MySQL, designed to manage books, authors, library members, and book loans. The database is fully normalized and includes proper relational constraints to maintain data integrity.
The system supports:
- Managing books and their authors (many-to-many relationship)
- Tracking library members
- Recording book loans
- Enforcing primary and foreign key constraints for consistency
This project fulfills the Week 8 Final Project Assignment for database design and normalization.
Objective:
Design and implement a relational database with well-structured tables, relationships, and constraints.
Instructions Followed:
- Created a relational schema for a Library Management System.
- Implemented PRIMARY KEY, FOREIGN KEY, NOT NULL, and UNIQUE constraints.
- Defined relationships:
- One-to-Many (Members β Loans)
- One-to-Many (Books β Loans)
- Many-to-Many (Books β Authors)
- Provided sample data for quick testing.
- Delivered as a single
.sql
file containingCREATE DATABASE
andCREATE TABLE
statements.
Tables:
Members
β Stores library member informationAuthors
β Stores author detailsBooks
β Stores book informationBookAuthors
β Resolves the many-to-many relationship between Books and AuthorsLoans
β Tracks which books are loaned to which members and their loan status