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

Library Management System (LMS)

Uploaded by

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

Library Management System (LMS)

Uploaded by

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

PROJECT LAB

LIBRARY MANAGEMENT SYSTEM


GROUP NUMBER: 7

Group Members:
 ISHA GOYAL
 DEVKANT SINGH
 ANURAG KUMAR
 DEEPIKA GUPTA
 KAMAL SAINI

B.Tech CSE [AI-ML]


II year
Submitted To :
Mr.Rishi Sharma
AIM:
Library management system is a project
which aims in developing a computerized
system to maintain all the daily work of
library.

OBJECTIVE:
This project has many features which are generally not
available in normal library management systems like
facility of user login and a facility of admin login. It also
has a facility of admin login through which the admin
can monitor the whole system. It has also a facility
where student after logging in their accounts can see
list of books issued and its issue date and return date.

Overall, this project of ours is being developed to help


the students as well as staff of library to maintain the
library in the best way possible and also reduce the
human efforts.

INTRODUCTION:
Online Library Management System is a system which
maintains the information about the books present in
the library, their authors, the members of library to
whom books are issued, library staff and all. This is very
difficult to organize manually. Maintenance of all this
information manually is a very complex task.
Owing to the advancement of technology, organization
of an Online Library becomes much simple. The Online
Library Management has been designed to
computerize and automate the operations performed
over the information about the members, book issues
and returns and all other operations.
This computerization of library helps in many
instances of its maintenances. It reduces the workload
of management as most of the manual work done is
reduced.
Library Management System consists of list of records
about the management of the details of the students
and the issues going on and also about some books
and all. As the modern organizations are automated
and computers are working as per the instructions, it
becomes essential for the coordination of human
beings, commodity and computers in a modern
organization. This information helps the distributors to
purchase or sale the products very efficiently.
The administrators and all the others can communicate
with the system through this project, thus facilitating
effective implementation and monitoring of various
activities of the distributor of a supermarket.
ER-Diagram:

DATA Modular:

A data modeler is a systems analyst who designs computer databases that translate
business data into usable systems. They work with data architects and scientists to design
databases that meet organizational needs. Data modelers help organizations understand how
they use their data and maintain data integrity.
Data Dictionary :
A Data dictionary contains metadata i.e. data
about the database. The data dictionary is very
important as it contains information such as
what is in the database, who is allowed to
access it, where is the database physically
stored etc. The users of the database
normally don't interact with the data dictionary,
it is

only handled by the database administrators.

The data dictionary in general contains


information about the following −

● Names of all the database tables and


their schemas.
● Details about all the tables in the
database, such as their owners, their
security constraints, when they were
created etc.
● Physical information about the tables
such as where they are stored and
how.
● Table constraints such as primary
key attributes, foreign key
information etc.
● Information about the database views
that are visible.

This is a data dictionary describing the tables that contains


library
details.

Primary Key:
In a database management system (DBMS), a primary key is a column or set
of columns that uniquely identifies each row in a table. A primary key is also
known as a primary keyword

Foreign key:

A foreign key is a column or group of columns in a relational database table that


links data in two tables. It's a column that references a column in another table,
usually the primary key.

BOOK: -
Column Name Data Type Field Length CONSTRAINS

book_id 10
Primary
number key
not null
book_name varchar (max)
not null
ISBN number 10

not null
author_name varchar 50

not null
book_edtion varchar 50

Foreign
rack_no number 10
key

Rack _no is foreign key

STUDENT:-

Column Name Data Type Field Length CONSTRAINS

student _id number 10 Primary key

student _name varchar 20 Not null

student_gender varchar 30 Not null

student_departme varchar 50 Not null


nt

department_id number 10 Foreign key

DEPARTMENT ID IS FORIGN KEY IN STUDENT TABLE


STAFF:-
Column Name Data Type Field Length CONSTRAINS

staff_id varchar 50 primary key


staff_name char 10 Not null
staff_address varchar 50 Not null
staff_gender char 10 Not null
deg_id number 30 Foreign key

deg_id is forigen key

DEPARTMENT:-

Column Name Data Type Field Length CONSTRAINS

Dep_id number 10 Primary key


Department_nam varchar 50 Not null
e
student_id number 10 Foreign key
HERE STUDENT_ID IS FORIGEN KEY
ISSUES:-
Column Name Data Type Field Length CONSTRAINS

issue_id number 10 Primary key


book_id number 10 Not null
book_name varchar 50 Not null
date_issue varchar 50 Not null
date_expirar varchar 50 Not null
y
student_id number 20 Foreign key

Student_id is foreign key

RETURN:-

Column Name Data Type Field Length CONSTRAINS

return_id number 30 Primary key


book_id number 30 Foreign key
issue_date dat 10 Not null
e
expairy_dat dat 10 Not null
e e
return_date dat 10 Not null
e
student_id number 20 Foreign key
staff_id varchar 50 Foreign key
issue_id number 20 Foreign key
HERE BOOK_ID ,ISSUE_ID ,STAFF_ID,STUDENT_ID ARE FORIGEN KEYS

Relationships
● A relationship is a bidirectional,
significant association between two
entities or between an entity and itself.
● Relationships represent an association
between two or more entities
● The relationship line on the diagram is
a solid mandatory or dashed optional
● These lines terminate in either a “single
toe” (one instance) or a “crow’s foot” (one
or more instance)
● Relationships have names that help
describe the connection between the
entities.
● In the relationship diagram the name of
the relationship, from either
perspective, is printed near the starting
point of the relationship line.
Components of a Relationship:
● Name
● Cardinality
● Optionality

What is cardinality in a Relationship?


● Cardinality measures the quantity of something
● In a relationship, it determines the degree
to which one entity is related to another by
answering “How many?”
● For example:
○ How many books can one student
have? Onlyone book? Or more than
one book?
○ How many students can have one specific
book? One student only? Or more than one
student?

What is optionality in a relationship?


● Relationships are either mandatory or optional
● Consider the two entities, BOOK and STUDENT
● Based on what you know about instances of
the entities, you can determine optionality by
answering two questions:
○ Must every student have a book? In
other words, is this a mandatory or
an optional relationship for a
student?
○ Must every book is issued by a student?
In other words, is this a mandatory or an
optional relationship for a book?

Now let’s see how the entities which are


mentioned above are related to each other.

● A book may be issued zero or many times


and one may issue zero or many books.

● A student must have zero or more books


issued anda book can be issued by one or
more students
● A student must have one and only one
student contact and a student contact
must be owned by one and only one
student.
● A staff must have one and only one staff
contact and a staff contact must be owned
by one and only one staff.
● A student must be connected to one or more

departments .
A student may make one or more return and a return must be
made by one and only one student.

TABLES :

1. BOOKS:

book_id book_nam ISBN author_nam book_edition


e e
Mathematics Malcolm Cameron second
1141 the truth 4151
Linux command Abhishek dutt third
2567 5678
Ethical Hacking Hussan Ahmad first
4352 5652
kid who come Mazhar NULL
5632 from space 9875

2. ISSUE:

issue_id book_id book_nam issue_dat expiry_date student_id


e e
Java 16-06-22 26-06-22
1151 5688 4422
Networking 12-08-22 22-08-22
1159 5633 1244

Data 6-09-22 16-09-22


1270 6543 structure 7832
andAlgorithm
Html5 guide 7-10-22 17-10-22
1501 5015 2234

1. STUDENTS:
student student student_ city state department_i
_id _ name e mail d

[email protected] Saharanpur Uttar


4533 5688 Prades 01
h
[email protected] Saharanpur Uttar
2233 5633 Prades 01
h
[email protected] Roorkee Uttar
6543 6543 Prades 12
h
[email protected] Deoband Uttar
8763 5015 Prades 11
h

2. DEPARTMENT:
department_id dept_name student_id
01 IT 7785
12 Business 8765
11 Economics 5765
07 Maths 8765
06 Commerce 8765
3. STAFF-

staff staff_ student city state staff_phon departmen


name _ e t
_id
gender _id
Azhar Male Sahara Uttar 83273623XX 01
s901 n pur Prades
h

Anjuli FeMale Sahara Uttar 70273623XX 07


s922 n pur Prades
h

Vipul Male Roorkee Uttar 95273623XX 12


s921 Prades
h

Husain Male Deoband Uttar 90273623XX 11


s909 Prades
h

4. RETURN:
return_id expiry_ issue_d issue_id book_id student_id staff_id
date ate
901 12-02- 02-01- 1132 1122 7633 s954
22 22
912 22-01- 12-03- 1176 1132 2322 s922
22 22
911 04-04- 24-03- 1243 1145 2234 s965
22 22
907 04-04- 01-04- 2165 1324 4321 S911
22 22
906 15-04- 05-04- 1154 1653 8753 S923
22 22
Important to note is that in this case a vehicle is either a car
or a truck, but a car might not be a vehicle (in this model).
This is what makes generalization different from
specialization. With specialization, an entity of the
specialized type always also is an entity of the general type.

Logical Model
Conceptual Model
TABLE INSTANCE CHART:
1. BOOK:

COLUMN_NAME BOOK_ID BOOK_NAME ISBN AUTHOR_NAME BOOK_EDITION


Key Type pk

Null/Unique * * * * o

SAMPLE DATA 1141 Mathematics 4151 Malcolm Cameron second


the truth

2567 Linux command 5678 Abhishek dutt third

4352 Ethical Hacking 5652 Hussan Ahmad first

5632 kid who come 9875 Mazhar null


from space

1. ISSUE:

COLUMN_NAME ISSUE_ID BOOK_ID BOOK_NAME ISSUE EXPIRY_D STUDENT_ID


_DATE ATE

Key Type pk fk

Null/Unique # * * * #

SAMPLE DATA 1151 5688 Java 16-06-22 26-06-22 4422

1159 5633 Networking 12-08-22 22-08-22 1244

1270 6543 Data Structure 6-09-22 16-09-22 7832


And Algorithm

1501 5015 HTML5 Guide 7-10-22 17-10-22 2234

2. STUDENTS:

COLUMN_NAME STUDENT_ID STUDENT_N STUDENT CITY STATE DEPARTMENR_ID


AME _MAIL
Key Type pk fk

Null/Unique # * * o o #

SAMPLE DATA 4533 Ritika xyz22@gma Saharanpur UP 01


il. com

2233 Aman per21@gma Saharanpur UP 01


il. com
6543 Anas pqr23@gma Roorkee UP 12
il. com

8763 Uvais sst45@gma Deoband UP 11


il. com

2. DEPARTMENT:

COLUMN_NAME DEPARTMENT_ID DEPT_NAME STUDENT_ID


KEY TYPE pk fk

NULL/UNIQUE # * *

SAMPLE DATA 01 IT 7785

12 BUSINESS 8765

11 ECONOMICS 5765

07 MATHS 8765

06 COMMERCE 8765

3. STAFF:

COLUMN_NA STAFF_ID STAFF_NA STAFF_G CITY STAFF_PH DEPARTMENR_


ME ME ENDER ONR ID
Key Type pk fk

Null/Unique # * o * * #

SAMPLE DATA s901 Azhar Male SRE 8764229988 01

s922 Anjuli Female SRE 9899663321 01

s921 Vipul Male Roorkee 9876543456 12

s909 Husain Male Deoband 9803327654 11

4 . RETURN
COLUMN_NA RETUR EXPIRY ISSUE_DAT ISSUE_ID BOOK_ID STUDENT_ID STAFF_ID
ME N_ID _DATE E

Key Type pk fk fk fk fk

Null/Unique # * # # # #

5.

SAMPLE 901 12-02- 02-01-22 1132 1122 7633 s952


DATA 22

912 22-01-22 12-03-22 1176 1132 2322 s922

911 04-04-22 24-03-22 1243 1145 4321 s965

907 04-04-22 01-04-22 2165 1324 8722 s911

906 15-04-22 05-04-22 1154 1653 8753 s923

Design View:
The library has the following table in its database:
Entities Attributes

Books 1. book_id
2. ISBN
3. book_nam
e
4.book_autho
r
5.book_editio
n 6.rack_no.

Student 1.student_id
2.student_name
3.student_email
4.student_addres
s

Staff 1.staff_id
2.staff_name
3.staff_address
4.staff_gender
5.staff_phone
Departmen 1. department_id
t 2. branch_name

Issue 1.issue_id
2.issue_date
3.expiry_date
4.book_name
5.book_id

Return 1.return_id
2.expiry_date
3.issue_date
4.book_id


.

You might also like