Library Managment System
Library Managment System
system
:Submitted by
Muhammad Furqan(1022)
:Submitted to
Mr.Amir jamshed
Department of computer science
:Content
Introduction
DFD(Level.0 & Level.1)
ER Diagram
Normalization
SQL Code
What is a Library Management System?
A Library Management System (LMS) is software designed to manage all the functions of
a library.
Helps librarians to maintain the database of new books, track borrowed books, and their
due dates, and manage members.
Objectives
• Efficient management of book records and member information.
• Streamline the process of issuing, returning, and reserving books.
• Improve accessibility and user experience for both librarians and members.
Features of Library Management System:
Book Management: Cataloging, Searching, Issuing, Returning, Reserving books.
Member Management: Registration, Tracking borrowing history, Notifications.
Staff Management: Roles and permissions, Librarian activities.
Reports and Analytics: Overdue books, Popular books, Member activity.
Library database
Entity-Relationship Diagram (ERD)
Illustrates the entities involved in the system and their relationships.
Key Entities:
Book: Attributes - Book_ID, Title, Author, ISBN, Publisher, Year.
Member: Attributes - Member_ID, Name, Address, Phone, Email.
Transaction: Attributes - Transaction_ID, Member_ID, Book_ID, Issue_Date, Due_Date,
Return_Date.
Librarian: Attributes - Librarian_ID, Name, Email, Password.
Level 0 DFD (Context Diagram)
The Level 0 DFD provides a high-level overview of the entire system, showing the system as a single
process with its relationships to external entities.
Entities:
1. Member
2. Staff
3. Admin
Process: Library Management System
Data Stores:
4. Books Database
5. Members Database
6. Staff Database
7. Loans Database
Level 1 DFD
The Level 1 DFD breaks down the main process into sub-processes.
Sub-processes:
8. Manage Books
9. Manage Members
10. Manage Loans
11. Manage Staff
Data Flows:
Between entities and processes
Between processes and data stores
Let me create the diagrams.
Level 0 DFD
Here is the text representation of the Level 0 DFD:
sql
+-----------------+ +-----------------+
| Member | | Staff |
|-----------------| |-----------------|
| - Request Book | | - Issue/Return |
+--------|--------+ +--------|--------+
| |
| |
| |
v v
+----------------------------------------+
| Library Management System |
|----------------------------------------|
| - Manage Books |
| - Manage Members |
| - Manage Loans |
| - Manage Staff |
+-----------------|----------------------+
|
|
v
+-----------------+
| Admin |
|-----------------|
| - Add/Remove |
| - Update |
+-----------------+
Level 1 DFD
Here is the text representation of the Level 1 DFD:
sql
+-----------------+ +-----------------+ +-----------------+
| Member | | Staff | | Admin |
|-----------------| |-----------------| |-----------------|
| - Request Book | | - Issue/Return | | - Add/Remove |
+--------|--------+ +--------|--------+ | - Update |
| | +--------|--------+
| | |
v v v
+---------------------------------------------------------------+
| Library Management System |
|---------------------------------------------------------------|
| - Manage Books | - Manage Loans |
| - Add/Remove Books | - Issue Books |
| - Search Books | - Return Books |
| | |
| - Manage Members | - Manage Staff |
| - Register/Remove Members | - Add/Remove Staff |
| - Update Member Details | - Update Staff Details |
+----------------|--------------+----|--------------------------+
| |
v v
+--------------+ +--------------+
| Books DB | | Loans DB |
+--------------+ +--------------+
| Members DB | | Staff DB |
+--------------+ +--------------+
Book ID Author Pub_ID
Address
Title
Books Published
by Publisher
Name
Price
Availability
ER Diagram:
Exp_Date
Name
Relatio
Due Date
nship Member Address
Memb_type
Memb_Id
Return Date
Issue Memb _info
:Normalization
THE END..