0% found this document useful (0 votes)
6 views

DBMS LAB

The document is a project report on the design and implementation of a Library Management System using SQL, aimed at fulfilling the requirements for a Bachelor of Technology degree in Computer Science and Engineering. It outlines the project's objectives, including creating a robust database structure, ensuring data integrity, and utilizing advanced SQL operations for effective library management. The project successfully demonstrates practical database management concepts and provides a user-friendly system for managing library operations.

Uploaded by

khushalis1512
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

DBMS LAB

The document is a project report on the design and implementation of a Library Management System using SQL, aimed at fulfilling the requirements for a Bachelor of Technology degree in Computer Science and Engineering. It outlines the project's objectives, including creating a robust database structure, ensuring data integrity, and utilizing advanced SQL operations for effective library management. The project successfully demonstrates practical database management concepts and provides a user-friendly system for managing library operations.

Uploaded by

khushalis1512
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

A PROJECT REPORT OF DBMS LAB

on

Library Management System using SQL

SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUIREMENT

FOR THE AWARD OF THE DEGREE OF

BACHELOR OF TECHNOLOGY

(Computer Science and Engineering)

JULY-DEC ,2024

SUBMITTED BY: SUBMITTED TO:

KARAN SINGH (2203482) Prof. Taman Kumar

TEJAS JOSHI (2203903)

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

GURU NANAK DEV ENGINEERING COLLEGE LUDHIANA


(An Autonomous College Under UGC ACT)

1
Acknowledgement

We would like to express our heartfelt gratitude to everyone who contributed to the successful
completion of this project.

First and foremost, we extend our sincere thanks to our instructor, Prof Taman Kumar, for
their invaluable guidance, expertise, and encouragement throughout the project. Their support
and constructive feedback were essential in bringing this project to fruition.

We also wish to acknowledge the collaborative efforts and insights shared by our classmates,
which greatly enriched our understanding and helped us refine various aspects of the project.

Finally, we would like to thank our families and friends for their unwavering support and
motivation during this journey.

Thank you to everyone who contributed to the success of this project.

Karan Singh

Tejas Joshi

2
Introduction

In today’s data-driven world, databases play a crucial role in storing, managing, and retrieving
data efficiently. SQL (Structured Query Language) is a powerful tool that allows developers
and analysts to interact with relational databases to perform these tasks. This project focuses
on the design and implementation of a library management system using SQL, providing a
robust database structure to manage essential operations within a library.
The system includes various entities, such as Users, Books, Admins, Logins, and Book
Records, each essential for organizing library data. By structuring these entities and
establishing clear relationships among them, this database provides a comprehensive solution
for managing library activities. The database supports functionalities such as adding new users,
tracking book availability, monitoring book borrowing, and managing user credentials through
an ER (Entity-Relationship) diagram that visually outlines these relationships.
The project covers all essential SQL operations, from Data Definition Language (DDL) to
create tables and set relationships, to Data Manipulation Language (DML) for inserting and
modifying records. Additionally, it includes various SQL concepts such as joins, aggregate
functions, string and date functions, constraints, and views to enable complex queries and
advanced data management capabilities.
This project demonstrates foundational SQL skills, showcasing the use of logical operators,
subqueries, joins, and aggregate functions in a structured manner. Through this project, we aim
to develop a deeper understanding of database management and the practical use of SQL to
support real-world applications.

3
Project Objectives

The primary objectives of this SQL database project are as follows:

1. Design a Robust Database Structure


o Develop a comprehensive and efficient database model using SQL that captures
the key entities in a library management system, including Users, Books,
Admins, Logins, and Book Records.
2. Implement Data Integrity and Constraints
o Apply data integrity rules and constraints to ensure the accuracy and
consistency of data within the database. For example, enforce constraints on
book availability, user information, and borrowing limits.
3. Establish Relationships among Entities
o Define relationships among different entities to facilitate seamless data
interaction, enabling easy access and management of user and book data across
the system.
4. Utilize Advanced SQL Operations
o Implement advanced SQL operations, including joins, aggregate functions, date
functions, and string functions, to support complex data retrieval and analysis.
5. Create Efficient Query Mechanisms
o Develop various SQL queries that allow library administrators to view available
books, list users, track borrowed books, and manage user authentication
efficiently.
6. Implement Views for Enhanced Data Accessibility
o Create views to simplify frequently accessed data, allowing library staff to
retrieve specific data, such as users with more than two borrowed books, quickly
and efficiently.
7. Enable Data Manipulation for Library Operations
o Allow authorized users to update, insert, and delete records as needed to
maintain up-to-date information on users, books, and borrowing records.
8. Demonstrate Real-World Database Applications
o Showcase the practical applications of SQL in managing and organizing data,
simulating a real-world scenario of a library management system.

4
ER Diagram

The Entity-Relationship (ER) Diagram is a graphical representation of the library


management system, illustrating the key entities involved, their attributes, and the relationships
among them. This ER diagram is designed to facilitate efficient management of users, books,
and administrative processes within the library.
1. USER Entity
• Purpose: The USER entity represents individuals who use the library's resources.
• Attributes:
o Name: The name of the user.
o Branch: The department or academic branch associated with the user.
o Mobile No: The user's contact number.
o Address: The residential address of the user.
o No of Books Issued: The count of books currently borrowed by the user.
o Library ID: A unique identification number assigned to each user.
• Relationships:

5
o Borrows: Users can borrow books from the library, establishing a relationship
between the USER and BOOK entities.
o Login Requirement: Users are required to log in to the system through the
LOGIN entity.
2. BOOK Entity
• Purpose: The BOOK entity represents all books in the library, containing essential
information about each book.
• Attributes:
o Book Barcode No: A unique barcode assigned to each book for identification
and tracking.
o Place: The location or section where the book is stored within the library.
o Title: The title of the book.
o Author: The author of the book.
o Status: The current status of the book (e.g., available, issued).
• Relationships:
o Borrowed by USER: A book can be borrowed by a user, showing the
connection between the USER and BOOK entities.
o Issued by ADMIN: The ADMIN entity is responsible for issuing books to
users, creating a relationship with the BOOK entity.
3. LOGIN Entity
• Purpose: The LOGIN entity facilitates user and admin authentication, ensuring secure
access to the system.
• Attributes:
o Login ID: A unique identifier used for login.
o Password: The password associated with the login ID to authenticate users or
admins.
• Relationships:
o Login Requirement: The LOGIN entity is connected to both the USER and
ADMIN entities, as both need to log in to access the system's features.
4. ADMIN Entity
• Purpose: The ADMIN entity represents library administrators responsible for
managing book records and user interactions.
• Attributes:
o Admin ID: A unique ID for each administrator.
o Name: The name of the administrator.
o Phone No: The contact number of the administrator.
• Relationships:
o Login Requirement: Administrators are required to log in through the LOGIN
entity.
o Maintains BOOK RECORD: The ADMIN entity is responsible for managing
the BOOK RECORD entity, which includes updating, deleting, and adding
book records.
o Issues BOOK: The ADMIN entity has the authority to issue books to users,
establishing a relationship with the BOOK entity.
5. BOOK RECORD Entity

6
• Purpose: The BOOK RECORD entity stores and manages all book-related data,
including inventory details.
• Attributes:
o Total Books Available: The total number of books available in the library.
• Relationships:
o Maintained by ADMIN: The ADMIN entity maintains the BOOK RECORD
entity. This includes actions such as updating records, deleting records, and
adding new records, allowing for effective inventory management.

7
Database Design

Table Definitions

8
9
10
11
12
13
14
15
Conclusion

The Library Management System project successfully provides a streamlined and efficient
solution for managing library operations. Through the integration of entities like USER,
BOOK, ADMIN, LOGIN, and BOOK RECORD, the system allows for a smooth flow of
information, ensuring easy access, borrowing, and record-keeping. By automating routine
processes and enabling secure login for both users and administrators, the system minimizes
manual work, reduces errors, and improves overall efficiency.

This project demonstrates a practical application of database management concepts,


particularly entity-relationship modeling, which helps to organize and maintain data
effectively. The ER diagram provides a clear visual of the relationships within the system,
ensuring a logical structure for database implementation. The Library Management System
not only simplifies the borrowing and returning of books but also enables administrators to
manage inventory seamlessly.

In summary, this project achieves its objective of creating a user-friendly, reliable, and secure
system for library management. It can be further expanded with additional features, such as
overdue book reminders, user activity tracking, and a recommendation system, making it an
adaptable foundation for larger, more complex library management applications in the future.

16

You might also like