Skip to content

pranavepoulose/library-management-sql-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

📚 Library Management System – SQL Project

Welcome to the Library Management System built entirely using SQL!
This project is designed to manage everything you'd expect in a real-world library — books, customers, employees, branches, and even tracking issued and returned books.

🎓 Academic Project | 💾 SQL-Based | 📊 Relational Database | ✅ Submission-Ready


📝 About This Project

This SQL project demonstrates how a library system can be structured using a relational database model.
It includes:

  • Cleanly structured schemas
  • Well-thought-out sample data
  • 12 practical SQL queries to retrieve meaningful information
  • Screenshots to verify output and ensure correctness

🚀 Features

  • 📦 6 interrelated tables with foreign key relationships
  • 📥 Sample data inserted for testing
  • 🔍 Complex queries using JOIN, GROUP BY, HAVING, WHERE, and subqueries
  • 📸 Screenshots of query outputs for academic evaluation
  • 💡 Follows DBMS principles & good SQL practices

🛠️ Technologies Used

  • SQL (MySQL syntax)
  • Git & GitHub for version control
  • Markdown for documentation
  • Local RDBMS like MySQL / XAMPP / phpMyAdmin

🧠 Database Tables

  1. Branch – Info about library locations
  2. Employee – Staff working at each branch
  3. Books – List of books with availability and rental price
  4. Customer – Registered users of the library
  5. IssueStatus – Tracks which books were issued to which customer
  6. ReturnStatus – Records the return of issued books


📊 SQL Queries Included

  1. Available books (title, category, price)
  2. Employee salaries in descending order
  3. Books issued with customer names
  4. Book count per category
  5. Employees with salary > ₹50,000
  6. Customers registered before 2022 who haven’t issued books
  7. Employee count per branch
  8. Customers who issued books in June 2023
  9. Books with "history" in the title
  10. Branches with more than 5 employees
  11. Branch managers with addresses
  12. Customers who issued books costing more than ₹25

📸 Screenshots Preview

Each query result is captured and included inside the /screenshots folder to validate the SQL execution.

🔍 Example:
QUERIES 1 QUERIES 2 QUERIES 3 QUERIES 4 QUERIES 5 QUERIES 6 QUERIES 7 QUERIES 8 QUERIES 9 QUERIES 10 QUERIES 11 QUERIES 12

About

A full SQL-based Library Management System project. Includes database schema design, table creation scripts, sample data insertion, and SQL queries to manage and retrieve data related to books, branches, employees, customers, issue and return status. Includes query results with screenshots.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors