SlideShare a Scribd company logo
1 of 24
Download to read offline
Library Management System
Project Report
Database Management
Maggie Zhang
Prerequisites
● Programming Language:
PHP
+ MySQL
● Developing Tools:
Eclipse IDE
+ MySQL workbench 8.0
System Requirement
Entity
-Relationship
Diagram
LIBRARY
Libname
Liblocation
COPY
DOCUMENT AUTHOR
READER
RETURNS
LENDS
HAS
WRITES
BORROWS
Document #
Copy #
Document #
Title
doctype
descriptor
location
number_copies
Author #author_name
Reader #
reader_name
reader_type
1
M
M N
CONTAINS
NM
L
M N
return_date
date_borrowed
return_date
1
N
Date
1
M
M
L
WAITS_FOR
N
M
date_borrowed
E-R to Relational Model Mapping
● Step 1: Strong Entities:
All the strong entities are mapped as Tables:
LIBRARY(Libname, Liblocation)
DOCUMENT (Document#, Title, Doctype, number_copies)
READER (Reader#, reader_name, readertype)
AUTHOR (Author#, authorname)
E-R to Relational Model Mapping
● Step 2: Weak Entities
Weak entities are mapped as tables with the key of the entities they depend on as part of their keys.
COPY (Document#, Copy#) Document# is the key of the strong entity (Document) copy depends on.
● Step 3: 1:N Relationships
HAS: Already mapped as part of the mapping of the weak entity COPY
CONTAINS: Mapped as a foreign key in COPY because COPY has a total participation in the
relationship.
COPY (Document#, Copy#, location, Libname)
E-R to Relational Model Mapping
● Step 4: M:N Relationships:
They are mapped as tables with a composite key (keys of the entities they connect)
Waits_for : WAITING_LIST(Reader#, Document#, date_available)
Writes: BOOK_AUTHOR (Author#, Document#)
E-R to Relational Model Mapping
● Step 5: Higher Order Relationships:
They are mapped as tables with a composite key (keys of the entities they connect)
- Borrows: DOCUMENTS_BORROWED (Reader#, Document#, Copy#, Libname, date_borrowed,
return_date)
- Returns: DOCUMENTS_RETURNED (Reader#, Document#, Copy#, Libname, date_returned)
- Lends: DOCUMENT_TO_LIBRARY(Document#, Copy#, Lending_libname, Borrowing_libname,
lend_date);
● Step 6: Multivalued Attibutes:
Mapped as tables the the key of the entity as a key of the table
Desc (Document #, descriptor)
Final Schema
● LIBRARY(Libname, Liblocation)
● DOCUMENT (Document#, Title, Doctype, number_copies)
● READER (Reader#, reader_name, readertype)
● AUTHOR (Author#, authorname)
● COPY (Document#, Copy#, location, Libname)
● WAITING_LIST(Reader#, Document#, date_available)
● BOOK_AUTHOR (Author#, Document#)
● DOCUMENTS_BORROWED (Reader#, Document#, Copy#, Libname, date_borrowed,
return_date)
● DOCUMENTS_RETURNED (Reader#, Document#, Copy#, Libname, date_returned)
● DOCUMENT_TO_LIBRARY(Document#, Copy#, Lending_libname, Borrowing_libname,
lend_date)
● Desc (Document #, descriptor)
Logical Database Design
● MySQL Workbench 8.0
Logical Database Design
● MySQL Server - XAMPP
Logical Database Design
● Database ‘lms’
● SQL script .sql
Application Program Design
● Eclipse IDE
Application Program Design
● Internet Information Services (IIS)
Application Program Design
● Folder: C:/inetpub/wwwroot/Library2/Project
● URL: http://localhost/Library2/Project/
Application Program Design
Sample Codes – Connect to MySQL
Login In
Function
Search
Function
Member
Mngt
Function:
Book
Mngt
Function:
Borrow
Hold
Function:
Return
Function:
Cloud Folder & Demonstration
● Google Drive:
https://drive.google.com/drive/folders/12-
gjPlONf92ppYwQcn7s_NoFKi4x925F?usp=sharing
● YouTube
● Live Presentation
Library system project

More Related Content

Similar to Library system project

mongodb-120401144140-phpapp01 claud camputing
mongodb-120401144140-phpapp01 claud camputingmongodb-120401144140-phpapp01 claud camputing
mongodb-120401144140-phpapp01 claud camputing
moeincanada007
 
Introduction to NoSQL Databases
Introduction to NoSQL DatabasesIntroduction to NoSQL Databases
Introduction to NoSQL Databases
Derek Stainer
 
OSCON 2012 MongoDB Tutorial
OSCON 2012 MongoDB TutorialOSCON 2012 MongoDB Tutorial
OSCON 2012 MongoDB Tutorial
Steven Francia
 

Similar to Library system project (20)

Library Database Application report
Library Database Application reportLibrary Database Application report
Library Database Application report
 
RethinkDB - the open-source database for the realtime web
RethinkDB - the open-source database for the realtime webRethinkDB - the open-source database for the realtime web
RethinkDB - the open-source database for the realtime web
 
RESTful API in Node.pdf
RESTful API in Node.pdfRESTful API in Node.pdf
RESTful API in Node.pdf
 
MongoDB Mojo: Building a Basic Perl App
MongoDB Mojo: Building a Basic Perl AppMongoDB Mojo: Building a Basic Perl App
MongoDB Mojo: Building a Basic Perl App
 
OSDC 2012 | Building a first application on MongoDB by Ross Lawley
OSDC 2012 | Building a first application on MongoDB by Ross LawleyOSDC 2012 | Building a first application on MongoDB by Ross Lawley
OSDC 2012 | Building a first application on MongoDB by Ross Lawley
 
Data science chapter-7,8,9
Data science chapter-7,8,9Data science chapter-7,8,9
Data science chapter-7,8,9
 
Code as Data workshop: Using source{d} Engine to extract insights from git re...
Code as Data workshop: Using source{d} Engine to extract insights from git re...Code as Data workshop: Using source{d} Engine to extract insights from git re...
Code as Data workshop: Using source{d} Engine to extract insights from git re...
 
Getting Started with R
Getting Started with RGetting Started with R
Getting Started with R
 
CSCI 494 - Lect. 3. Anatomy of Search Engines/Building a Crawler
CSCI 494 - Lect. 3. Anatomy of Search Engines/Building a CrawlerCSCI 494 - Lect. 3. Anatomy of Search Engines/Building a Crawler
CSCI 494 - Lect. 3. Anatomy of Search Engines/Building a Crawler
 
mongodb-120401144140-phpapp01 claud camputing
mongodb-120401144140-phpapp01 claud camputingmongodb-120401144140-phpapp01 claud camputing
mongodb-120401144140-phpapp01 claud camputing
 
DynamodbDB Deep Dive
DynamodbDB Deep DiveDynamodbDB Deep Dive
DynamodbDB Deep Dive
 
Presentation: mongo db & elasticsearch & membase
Presentation: mongo db & elasticsearch & membasePresentation: mongo db & elasticsearch & membase
Presentation: mongo db & elasticsearch & membase
 
Practical Use of a NoSQL Database
Practical Use of a NoSQL DatabasePractical Use of a NoSQL Database
Practical Use of a NoSQL Database
 
Cross-File Navigation & Enhanced Interactivity with TimeSavers + Navigation A...
Cross-File Navigation & Enhanced Interactivity with TimeSavers + Navigation A...Cross-File Navigation & Enhanced Interactivity with TimeSavers + Navigation A...
Cross-File Navigation & Enhanced Interactivity with TimeSavers + Navigation A...
 
MongoDB for Genealogy
MongoDB for GenealogyMongoDB for Genealogy
MongoDB for Genealogy
 
Introduction to NoSQL Databases
Introduction to NoSQL DatabasesIntroduction to NoSQL Databases
Introduction to NoSQL Databases
 
OSCON 2012 MongoDB Tutorial
OSCON 2012 MongoDB TutorialOSCON 2012 MongoDB Tutorial
OSCON 2012 MongoDB Tutorial
 
PostgreSQL - Object Relational Database
PostgreSQL - Object Relational DatabasePostgreSQL - Object Relational Database
PostgreSQL - Object Relational Database
 
Hadoop Ecosystem
Hadoop EcosystemHadoop Ecosystem
Hadoop Ecosystem
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 

Recently uploaded

Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
amitlee9823
 
Peaches App development presentation deck
Peaches App development presentation deckPeaches App development presentation deck
Peaches App development presentation deck
tbatkhuu1
 
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
amitlee9823
 
Editorial design Magazine design project.pdf
Editorial design Magazine design project.pdfEditorial design Magazine design project.pdf
Editorial design Magazine design project.pdf
tbatkhuu1
 
DESIGN THINKING in architecture- Introduction
DESIGN THINKING in architecture- IntroductionDESIGN THINKING in architecture- Introduction
DESIGN THINKING in architecture- Introduction
sivagami49
 
B. Smith. (Architectural Portfolio.).pdf
B. Smith. (Architectural Portfolio.).pdfB. Smith. (Architectural Portfolio.).pdf
B. Smith. (Architectural Portfolio.).pdf
University of Wisconsin-Milwaukee
 
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
instagramfab782445
 
Verified Trusted Call Girls Adugodi💘 9352852248 Good Looking standard Profil...
Verified Trusted Call Girls Adugodi💘 9352852248  Good Looking standard Profil...Verified Trusted Call Girls Adugodi💘 9352852248  Good Looking standard Profil...
Verified Trusted Call Girls Adugodi💘 9352852248 Good Looking standard Profil...
kumaririma588
 
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
amitlee9823
 

Recently uploaded (20)

Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
 
Peaches App development presentation deck
Peaches App development presentation deckPeaches App development presentation deck
Peaches App development presentation deck
 
VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...
VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...
VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...
 
Case Study of Hotel Taj Vivanta, Pune
Case Study of Hotel Taj Vivanta, PuneCase Study of Hotel Taj Vivanta, Pune
Case Study of Hotel Taj Vivanta, Pune
 
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
 
AMBER GRAIN EMBROIDERY | Growing folklore elements | Root-based materials, w...
AMBER GRAIN EMBROIDERY | Growing folklore elements |  Root-based materials, w...AMBER GRAIN EMBROIDERY | Growing folklore elements |  Root-based materials, w...
AMBER GRAIN EMBROIDERY | Growing folklore elements | Root-based materials, w...
 
Editorial design Magazine design project.pdf
Editorial design Magazine design project.pdfEditorial design Magazine design project.pdf
Editorial design Magazine design project.pdf
 
❤Personal Whatsapp Number 8617697112 Samba Call Girls 💦✅.
❤Personal Whatsapp Number 8617697112 Samba Call Girls 💦✅.❤Personal Whatsapp Number 8617697112 Samba Call Girls 💦✅.
❤Personal Whatsapp Number 8617697112 Samba Call Girls 💦✅.
 
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
 
DESIGN THINKING in architecture- Introduction
DESIGN THINKING in architecture- IntroductionDESIGN THINKING in architecture- Introduction
DESIGN THINKING in architecture- Introduction
 
Hire 💕 8617697112 Meerut Call Girls Service Call Girls Agency
Hire 💕 8617697112 Meerut Call Girls Service Call Girls AgencyHire 💕 8617697112 Meerut Call Girls Service Call Girls Agency
Hire 💕 8617697112 Meerut Call Girls Service Call Girls Agency
 
B. Smith. (Architectural Portfolio.).pdf
B. Smith. (Architectural Portfolio.).pdfB. Smith. (Architectural Portfolio.).pdf
B. Smith. (Architectural Portfolio.).pdf
 
Jordan_Amanda_DMBS202404_PB1_2024-04.pdf
Jordan_Amanda_DMBS202404_PB1_2024-04.pdfJordan_Amanda_DMBS202404_PB1_2024-04.pdf
Jordan_Amanda_DMBS202404_PB1_2024-04.pdf
 
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
 
Chapter 19_DDA_TOD Policy_First Draft 2012.pdf
Chapter 19_DDA_TOD Policy_First Draft 2012.pdfChapter 19_DDA_TOD Policy_First Draft 2012.pdf
Chapter 19_DDA_TOD Policy_First Draft 2012.pdf
 
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
 
Verified Trusted Call Girls Adugodi💘 9352852248 Good Looking standard Profil...
Verified Trusted Call Girls Adugodi💘 9352852248  Good Looking standard Profil...Verified Trusted Call Girls Adugodi💘 9352852248  Good Looking standard Profil...
Verified Trusted Call Girls Adugodi💘 9352852248 Good Looking standard Profil...
 
HiFi Call Girl Service Delhi Phone ☞ 9899900591 ☜ Escorts Service at along wi...
HiFi Call Girl Service Delhi Phone ☞ 9899900591 ☜ Escorts Service at along wi...HiFi Call Girl Service Delhi Phone ☞ 9899900591 ☜ Escorts Service at along wi...
HiFi Call Girl Service Delhi Phone ☞ 9899900591 ☜ Escorts Service at along wi...
 
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
 

Library system project

  • 1. Library Management System Project Report Database Management Maggie Zhang
  • 2. Prerequisites ● Programming Language: PHP + MySQL ● Developing Tools: Eclipse IDE + MySQL workbench 8.0
  • 4. Entity -Relationship Diagram LIBRARY Libname Liblocation COPY DOCUMENT AUTHOR READER RETURNS LENDS HAS WRITES BORROWS Document # Copy # Document # Title doctype descriptor location number_copies Author #author_name Reader # reader_name reader_type 1 M M N CONTAINS NM L M N return_date date_borrowed return_date 1 N Date 1 M M L WAITS_FOR N M date_borrowed
  • 5. E-R to Relational Model Mapping ● Step 1: Strong Entities: All the strong entities are mapped as Tables: LIBRARY(Libname, Liblocation) DOCUMENT (Document#, Title, Doctype, number_copies) READER (Reader#, reader_name, readertype) AUTHOR (Author#, authorname)
  • 6. E-R to Relational Model Mapping ● Step 2: Weak Entities Weak entities are mapped as tables with the key of the entities they depend on as part of their keys. COPY (Document#, Copy#) Document# is the key of the strong entity (Document) copy depends on. ● Step 3: 1:N Relationships HAS: Already mapped as part of the mapping of the weak entity COPY CONTAINS: Mapped as a foreign key in COPY because COPY has a total participation in the relationship. COPY (Document#, Copy#, location, Libname)
  • 7. E-R to Relational Model Mapping ● Step 4: M:N Relationships: They are mapped as tables with a composite key (keys of the entities they connect) Waits_for : WAITING_LIST(Reader#, Document#, date_available) Writes: BOOK_AUTHOR (Author#, Document#)
  • 8. E-R to Relational Model Mapping ● Step 5: Higher Order Relationships: They are mapped as tables with a composite key (keys of the entities they connect) - Borrows: DOCUMENTS_BORROWED (Reader#, Document#, Copy#, Libname, date_borrowed, return_date) - Returns: DOCUMENTS_RETURNED (Reader#, Document#, Copy#, Libname, date_returned) - Lends: DOCUMENT_TO_LIBRARY(Document#, Copy#, Lending_libname, Borrowing_libname, lend_date); ● Step 6: Multivalued Attibutes: Mapped as tables the the key of the entity as a key of the table Desc (Document #, descriptor)
  • 9. Final Schema ● LIBRARY(Libname, Liblocation) ● DOCUMENT (Document#, Title, Doctype, number_copies) ● READER (Reader#, reader_name, readertype) ● AUTHOR (Author#, authorname) ● COPY (Document#, Copy#, location, Libname) ● WAITING_LIST(Reader#, Document#, date_available) ● BOOK_AUTHOR (Author#, Document#) ● DOCUMENTS_BORROWED (Reader#, Document#, Copy#, Libname, date_borrowed, return_date) ● DOCUMENTS_RETURNED (Reader#, Document#, Copy#, Libname, date_returned) ● DOCUMENT_TO_LIBRARY(Document#, Copy#, Lending_libname, Borrowing_libname, lend_date) ● Desc (Document #, descriptor)
  • 10. Logical Database Design ● MySQL Workbench 8.0
  • 11. Logical Database Design ● MySQL Server - XAMPP
  • 12. Logical Database Design ● Database ‘lms’ ● SQL script .sql
  • 14. Application Program Design ● Internet Information Services (IIS)
  • 15. Application Program Design ● Folder: C:/inetpub/wwwroot/Library2/Project ● URL: http://localhost/Library2/Project/
  • 16. Application Program Design Sample Codes – Connect to MySQL
  • 23. Cloud Folder & Demonstration ● Google Drive: https://drive.google.com/drive/folders/12- gjPlONf92ppYwQcn7s_NoFKi4x925F?usp=sharing ● YouTube ● Live Presentation