Project Title: Library Management System
Level: Intermediate
Database: library_db
This project demonstrates the implementation of a Library Management System using SQL. It includes database creation, table relationships, CRUD operations, and advanced SQL queries for data analysis and reporting.
The purpose of this project is to showcase practical SQL skills in database design, data management, and query writing.
- Design and create a relational database for library management.
- Create tables for branches, employees, members, books, issued books, and returned books.
- Perform CRUD operations on records.
- Use joins to connect related tables.
- Generate reports using aggregate functions.
- Use CTAS (
CREATE TABLE AS SELECT) for summary tables. - Analyze data using SQL queries.
Library-Management-System/
│── 01_create_tables.sql
│── 02_insert_data.sql
│── 03_project_tasks.sql
│── schema-diagram.png
│── README.md
- Branch
- Employee
- Member
- Book
- Issue Status
- Return Status
- Inserted sample records into the books table.
- Retrieved and displayed data from various tables.
- Updated records in the employees table.
- Removed records from the members table as needed.
- Create a New Book Record
- Update an Existing Member's Address
- Delete a Record from Issued Status Table
- Retrieve All Books Issued by a Specific Employee
- List Members Who Have Issued More Than One Book
- Create Summary Tables Using CTAS
- Retrieve All Books in a Specific Category
- Find Total Rental Income by Category
- List Members Who Registered in the Last 180 Days
- List Employees with Their Branch Manager's Name and Branch Details
- Create a Table of Books with Rental Price Above a Threshold
- Retrieve the List of Books Not Yet Returned
- Book category analysis
- Rental income reports
- Member registration trends
- Book issue and return tracking
- Summary reports for books and employees
- CREATE DATABASE
- CREATE TABLE
- ALTER TABLE
- PRIMARY KEY
- FOREIGN KEY
- INSERT
- UPDATE
- DELETE
- SELECT
- WHERE
- JOIN
- GROUP BY
- HAVING
- ORDER BY
- Aggregate Functions
- CTAS
Ayush Jayswar
This project demonstrates practical SQL skills required for database management and data analysis.
