SlideShare a Scribd company logo
1 of 32
Download to read offline
LIBRARY	DATBASE	APPLICATION	
NEW JERSEY INSTITUTE OF TECHNOLOGY
CS631-DATABASE MANAGEMENT SYSTEMS DESIGN
PROJECT DELIVERABLE 3
LIBRARY DATABASE APPLICATION
Submitted by: -
VENKATA BHASKARA ANURAAG MOTURI (31403499)
NIKHIL REDDY BHIMIREDDY (31404974)
MAMILLA RISHI VENKATESH (31398276)
LIBRARY	DATBASE	APPLICATION	
2. TABLE OF CONTENTS
1. Overview of the project
2. EER Model
3. Relational Model
4. Sql Table
5. Constraints
6. Tables with sample data
7. User Guide
8. Source Code
LIBRARY	DATBASE	APPLICATION	
Overview of the project:
The goal of the project is to Analyze, design, implement, and document a
library database system application. This system is implemented on DBMS
with PHP as a host-language for the application. This system is menu- driven
and includes all the basic functionalities as per the requirement.
This project (Library Database Application) is a general purpose project,
which satisfies all the needs of a typical Library system. The project has been
tailored to solve the problems faced by the Admin, Employees and Readers
in a manual processing of the information.
Librarian usually perform their work manually in which large amount of time
and human effort is wasted in retrieving information, handling of huge data,
generation of reports, updating of data etc. These problems can be easily
solved by the automation of existing Library information.
The package “Library Database Application” is fully menu driven and provide
very quick and accurate information about all the Readers, issued and return
status of documents etc.
Library Database Application has been made a view to provide the Admin,
Employees and Readers with better facilities to obtain documents. The main
purpose is to provide easy and convenient way to the Readers to get or issue
documents from Library.
The system provides information about issued and returned status of the
documents. This also provides the information of which document is issued
to which Reader. Different Readers have different choices of documents as
per their requirement, this system provides easy navigational features which
provides a very user-friendly interface which help the students, staff, etc. to
obtain documents easily.
The library contains several branches and each library is given its own library
ID, name and address. The library has information about all its documents
available with specific document ID. The documents can be either books,
journals, proceedings. So each category of documents has their own title, ID
LIBRARY	DATBASE	APPLICATION	
to identify and the names of authors, publishers and editors and their details
are recorded. With the help of this data the documents can be searched by
the readers. Each library branch can have multiple copies of the same
document and the position of the copy in the library should also be noted
with specific codes so the reader can collect the document easily.
Each reader is given a reader ID when they sign up with the library and the
details of the reader like the name, address, phone numbers and the type of
reader (“student, “lecturer”, “staff”, “senior citizen”, etc.) is stored in the library
database before they borrow a document. Readers also have the option to
reserve books on the online catalogue with a condition that they have to
collect it before 6 pm the same day else the reservation will be cancelled and
the document will be available to other readers. After the document is
borrowed by the reader the borrowed data and time will be recorded by the
library and the document must be returned within 20 days post the borrow
date. If not returned within the return date time, the reader will be fined at 30
cents per day after the return date time. There is also a condition the
document must be returned to the same library branch where it has been
borrowed.
Problems faced:
Ø While reserving, borrowing and returning a copy.
Ø While recording the returned date.
Ø While calculating the fine when reader returns a copy after 20 days.
Ø While restricting the reader to reserve/borrow to maximum of 10
copies.
Ø While restricting the reader to reserve/borrow a copy before 6 PM.
Ø While Cancelling the reservations after 6 PM.
Ø While restoring a copy to the exact location and the library from where
it was borrowed.
Ø While issuing a wait list number to a reader when a copy is not
available in that library.
All the problems and the constraints were solved, expect for issuing a wait
list number to a reader. This can be solved in further study.
LIBRARY	DATBASE	APPLICATION	
EER Model:
LIBRARY	DATBASE	APPLICATION	
Relational Model
Relational Model:
	
DOCUMENT	
Doc_ID	 Title	 PDate	 Public_ID	 Author_ID	
	
DOCUMENT_DESCRIPTOR	
Doc_ID	 Descriptor	
	
LIBRARY_BRANCH	
Lib_ID	 Name	 Location	
	
READER		
Reader_ID	 Address	 Reader_Name	 Type	 Phone_num	
	
BOR_TRANSACTION	
BorNumber	 BorDateTime	 RetDateTime	
	
RESERVATION	
ResNumber	 ResDateTime	
	
BORROWS	
BorNumber	 Reader_ID	 DocID	 libID	 copyNo	
	
RESERVES	
ResNumber	 ReaderID	 DocID	 libID	 copyNo	
	
PUBLISHER	
PublisherID	 PubName	 Address	
	
Author	
AuthorID	 AName	
	
COPY	
CopyNo	 DocID	 LibID	 position	
	
WRITES	
AuthorID	 DocID	
	
BOOK	
ISBN	 DocID	
	
PROCEEDINGS	
DocID	 CDate	 CLocation	 CEdition	
	
JOURNAL_VOLUME	
VolumeNo	 DocID	
	
JOURNAL_ISSUE	
IssueNo	 VolumeNo	 Scope	 DocID	
	
CHIEF_EDITOR	
EditorID	 VolumeNo	 EName	 DocID	
	
JOURNAL_EDITION	
DocID	 IssueNo	 IEditor
LIBRARY	DATBASE	APPLICATION	
SQL Tables
/*author*/
CREATE TABLE `author` (
`AuthorId` varchar(25) NOT NULL,
`AuthorName` varchar(50) NOT NULL,
PRIMARY KEY (`AuthorId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*books*/
CREATE TABLE `books` (
`DocId` int(11) NOT NULL,
`ISBN` varchar(13) NOT NULL,
PRIMARY KEY (`DocId`),
KEY `DocId` (`DocId`),
CONSTRAINT `books_ibfk_1` FOREIGN KEY (`DocId`) REFERENCES
`document` (`DocId`)
ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*borrows*/
CREATE TABLE `borrows` (
`BorNum` int(10) NOT NULL AUTO_INCREMENT,
`ReaderId` varchar(25) NOT NULL,
`CopyId` varchar(10) NOT NULL,
`DocId` int(11) NOT NULL,
LIBRARY	DATBASE	APPLICATION	
`LibId` varchar(25) NOT NULL,
`CopyNo` varchar(25) NOT NULL,
`Position` varchar(10) NOT NULL,
`BorDateTime` datetime DEFAULT NULL,
`RetDateTime` datetime DEFAULT NULL,
`Fine` double(10,2) DEFAULT NULL,
PRIMARY KEY (`BorNum`,`CopyId`),
KEY `ReaderId` (`ReaderId`),
KEY `DocId` (`DocId`),
CONSTRAINT `borrows_ibfk_1` FOREIGN KEY (`ReaderId`)
REFERENCES `reader` (`ReaderId`),
CONSTRAINT `borrows_ibfk_2` FOREIGN KEY (`DocId`) REFERENCES
`document` (`DocId`)
) ENGINE=InnoDB AUTO_INCREMENT=48 DEFAULT CHARSET=latin1
/*ceditor*/
CREATE TABLE `ceditor` (
`CId` varchar(10) NOT NULL,
`CName` varchar(20) NOT NULL,
PRIMARY KEY (`CId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*copy*/
CREATE TABLE `copy` (
`CopyId` varchar(10) NOT NULL,
LIBRARY	DATBASE	APPLICATION	
`DocId` int(10) NOT NULL,
`LibId` varchar(10) NOT NULL,
`CopyNo` int(10) NOT NULL,
`Position` varchar(10) NOT NULL,
PRIMARY KEY (`CopyId`),
KEY `DocId` (`DocId`),
KEY `LibId` (`LibId`),
CONSTRAINT `copy_ibfk_1` FOREIGN KEY (`DocId`) REFERENCES
`document` (`DocId`),
CONSTRAINT `copy_ibfk_2` FOREIGN KEY (`LibId`) REFERENCES
`libraryBranch` (`LibId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*copyData*/
CREATE TABLE `copyData` (
`CopyId` varchar(10) NOT NULL,
`DocId` int(10) NOT NULL,
`LibId` varchar(10) NOT NULL,
`CopyNo` int(10) NOT NULL,
`Position` varchar(10) NOT NULL,
PRIMARY KEY (`CopyId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*docDescriptor*/
CREATE TABLE `docDescriptor` (
LIBRARY	DATBASE	APPLICATION	
`DocId` int(11) NOT NULL,
`Descriptor` varchar(50) NOT NULL,
PRIMARY KEY (`DocId`,`Descriptor`),
CONSTRAINT `docdescriptor_ibfk_1` FOREIGN KEY (`DocId`)
REFERENCES `document` (`DocId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*document*/
CREATE TABLE `document` (
`DocId` int(10) NOT NULL,
`Title` varchar(50) NOT NULL,
`PublishDate` date DEFAULT NULL,
`PubId` varchar(25) DEFAULT NULL,
`AuthorId` varchar(10) DEFAULT NULL,
`DocType` varchar(10) DEFAULT NULL,
PRIMARY KEY (`DocId`),
KEY `PubId` (`PubId`),
KEY `AuthorId` (`AuthorId`),
CONSTRAINT `document_ibfk_1` FOREIGN KEY (`PubId`)
REFERENCES `publisher` (`PubId`),
CONSTRAINT `document_ibfk_3` FOREIGN KEY (`AuthorId`)
REFERENCES `author` (`AuthorId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*geditor*/
CREATE TABLE `geditor` (
`GId` varchar(10) NOT NULL,
LIBRARY	DATBASE	APPLICATION	
`GName` varchar(20) NOT NULL,
PRIMARY KEY (`GId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*journals*/
CREATE TABLE `journals` (
`DocId` int(10) NOT NULL,
`VolumeNo` int(10) NOT NULL,
`IssueNo` int(10) NOT NULL,
`CId` varchar(10) NOT NULL,
`GId` varchar(10) NOT NULL,
`Scope` varchar(50) NOT NULL,
PRIMARY KEY (`DocId`),
KEY `DocId` (`DocId`),
KEY `CId` (`CId`),
KEY `GId` (`GId`),
CONSTRAINT `journals_ibfk_1` FOREIGN KEY (`DocId`) REFERENCES
`document` (`DocId`)
ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `journals_ibfk_2` FOREIGN KEY (`CId`) REFERENCES
`ceditor` (`CId`),
CONSTRAINT `journals_ibfk_3` FOREIGN KEY (`GId`) REFERENCES
`geditor` (`GId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
LIBRARY	DATBASE	APPLICATION	
/*libraryBranch*/
CREATE TABLE `libraryBranch` (
`LibId` varchar(25) NOT NULL,
`LibName` varchar(20) NOT NULL,
`Location` varchar(50) NOT NULL,
PRIMARY KEY (`LibId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*proceedings*/
CREATE TABLE `proceedings` (
`DocId` int(11) NOT NULL,
`CDate` date NOT NULL,
`CLocation` varchar(25) NOT NULL,
`CChair` varchar(25) NOT NULL,
PRIMARY KEY (`DocId`),
CONSTRAINT `proceedings_ibfk_1` FOREIGN KEY (`DocId`)
REFERENCES `document` (`DocId`)
ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*publisher*/
CREATE TABLE `publisher` (
`PubId` varchar(25) NOT NULL,
`PubName` varchar(50) NOT NULL,
`Address` varchar(50) NOT NULL,
LIBRARY	DATBASE	APPLICATION	
PRIMARY KEY (`PubId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*reader*/
CREATE TABLE `reader` (
`ReaderId` varchar(25) NOT NULL,
`ReaderName` varchar(50) NOT NULL,
`Address` varchar(50) NOT NULL,
`ReaderType` varchar(15) NOT NULL,
`PhoneNumber` varchar(10) NOT NULL,
PRIMARY KEY (`ReaderId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*reserves*/
CREATE TABLE `reserves` (
`ResNo` int(10) NOT NULL AUTO_INCREMENT,
`ReaderId` varchar(50) NOT NULL,
`CopyId` varchar(10) NOT NULL,
`DocId` int(11) NOT NULL,
`LibId` varchar(25) NOT NULL,
`CopyNo` varchar(25) NOT NULL,
`Position` varchar(10) NOT NULL,
`ResDateTime` datetime DEFAULT NULL,
PRIMARY KEY (`ResNo`),
KEY `ReaderId` (`ReaderId`),
LIBRARY	DATBASE	APPLICATION	
CONSTRAINT `reserves_ibfk_1` FOREIGN KEY (`ReaderId`)
REFERENCES `reader` (`ReaderId`)
) ENGINE=InnoDB AUTO_INCREMENT=92 DEFAULT CHARSET=latin1
/*stores*/
CREATE TABLE `stores` (
`DocId` int(11) NOT NULL,
`LibId` varchar(20) NOT NULL,
`CopyId` varchar(20) NOT NULL,
PRIMARY KEY (`DocId`,`LibId`,`CopyId`),
KEY `LibId` (`LibId`),
KEY `stores_ibfk_3` (`CopyId`),
CONSTRAINT `stores_ibfk_1` FOREIGN KEY (`DocId`) REFERENCES
`document` (`DocId`)
ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `stores_ibfk_2` FOREIGN KEY (`LibId`) REFERENCES
`libraryBranch` (`LibId`),
CONSTRAINT `stores_ibfk_3` FOREIGN KEY (`CopyId`) REFERENCES
`copy` (`CopyId`)
ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1
LIBRARY	DATBASE	APPLICATION	
Constraints
Ø Each document has single publisher.
Ø Reader have access to the online catalogue of documents and may
reserve books by title if they are available. A reserved book has to be
picked up before 6 pm; otherwise, the reservation is cancelled.
Ø A reader cannot borrow or reserve more than 10 documents.
Ø Borrowing is defined as taking out a copy of a document on one date
and time (BDateTime) and returning it a maximum of 20 days later.
(RDateTime) is the date on which the copy of the borrowed document
is actually returned. (RDateTime) is NULL if the document has not yet
been returned).
Ø Document has to be returned to the branch from which they are
borrowed.
Ø The same copy of a document can be reserved and/or borrowed by
the same reader several times.
Ø Document that are not returned on time are fined at a rate of 30 cents
for each day after the due date.
Ø The (RDateTime) for a document and the beginning of a new loan for
same document are always at least a day apart. (a document copy
cannot be borrowed and returned several times in the same day.)
Ø When a document is not available anywhere, the reader can ask to be
put on a waiting list.
Ø A copy of a document cannot be lent to more than one reader at a time
(it cannot be lent to a group of people), but a reader can borrow several
copies of different documents.
Ø The library wishes to have a record of all borrowing.
LIBRARY	DATBASE	APPLICATION	
TABLES	
reserves	
				
ResNo			
ReaderId	 CopyId	 DocId	
(int)	
LibId	 CopyNo	 Position	 ResDateTime	
146 R004	 Copy024	 1008	 Lib002	 1	 024A002	 2016-12-12	
19:09:07	
149	 R001	 Copy022	 1007	 Lib004	 1	 022A003	 2016-12-12	
19:09:16	
150	 R005	 Copy023	 1007	 Lib001	 1	 023A001	 2016-12-12	
19:09:23	
151	 R001	 Copy003	 1001	 Lib002	 1	 001A001	 2016-12-12	
19:09:33	
152	 R001	 Copy001	 1001	 Lib001	 1	 001A001	 2016-12-12	
19:36:37	
	
publisher	 	 	 	 	 	 libraryBranch	
PubId		 PubName	 Address	
Pub001	 New	Jersey	
Publications	
New	
Jersey	
Pub002	 New	York	
Publications	
New	York	
Pub003	 California	
Publications	
California	
	
	
	
document	
DocId		 Title	 PublishDate	 PubId	 AuthorId	 DocType	
1001	 Sorcerer’s	stone	 1997-11-06	 Pub001	 Auth001	 Book	
1002	 Chamber	of	
secrets		
1998-08-11	 Pub001	 Auth001	 Book	
1003	 Prisoners	of	
Azkaban	
1999-02-03	 Pub002	 Auth001	 Book	
1004	 Goblet	of	fire	 2000-01-23	 Pub002	 Auth001	 Book	
1005	 Twilight		 2005-12-02	 Pub001	 Auth002	 Journal		
1006	 Twilight		 2005-12-30	 Pub002	 Auth002	 Journal	
1007	 New	Moon			 2006-03-03	 Pub003	 Auth002	 Journal	
1008	 New	Moon	 2006-05-05	 Pub002	 Auth002	 Journal	
1009	 Eclipse		 2007-03-03	 Pub003	 Auth002	 Proceeding		
LibId	 LibName	 Location	
Lib001	 Royal	
Library	
Kearny		
Lib002	 National	
Library	
Harrison		
Lib003	 Thomas	
Library	
Rutherford	
Lib004	 State	Library	 North	
Arlington
LIBRARY	DATBASE	APPLICATION	
1010	 Breaking	Dawn	 2008-09-03	 Pub002	 Auth002	 Proceeding		
1011	 Avengers	 2015-09-23	 Pub002	 Auth003	 Book		
1012	 Winter	Soldier	 2012-09-07	 Pub001	 Auth001	 Book		
1013	 The	Dark	Knight	 2016-05-11	 Pub002	 Auth003	 Journal		
1014	 The	Dark	Knight	 2016-09-08	 Pub002	 Auth003	 Journal		
1015	 Fantastic	Beasts	 2016-11-20	 Pub003	 Auth001	 Book	
1016	 The	Half	Blood	
Prince	
2008-09-23	 Pub002	 Auth002	 Journal	
1017	 American	Culture	 2010-10-20	 Pub001	 Auth003	 Proceeding		
	
reader	
ReaderId	 ReaderName	 Address	 ReaderType	 PhoneNumber	
3001	 Nikhil		 Nizampet		 Student	 2013557019	
3002	 Akhil		 Arlington		 Employee		 2018896582	
3003	 Anuraag	 Miyapur		 Employee		 5512539305	
3004	 Cherry		 Kearny		 Student	 7329848673	
3005	 Rohit		 Dilsukhnagar		 Professor		 7323254300	
3006	 Sathish		 Chennai		 Student	 5515802072	
3007	 Pawankalyan	 Hyderabad		 Student		 5512537029	
3008	 Balakrishna		 Vijayawada		 Professor		 9952915515	
	
borrows	
BorNum	 ReaderId	 CopyId	 DocId	 LibId	 CopyNo	 Position	 BorDateTime	 RetDateTime	 Fine	
80	 R001	 Copy001	 1001	 Lib001	 1	 001A001	 2016-08-01	
19:06:45	
2016-12-12	
19:16:45	
33.90	
81	 R002	 Copy009	 1002	 Lib001	 1	 002A003	 2016-08-02	
19:06:52	
2016-12-12	
19:16:48	
33.60	
82	 R002	 Copy002	 1001	 Lib001	 2	 002A001	 2016-08-16	
19:06:56	
2016-12-12	
19:16:49	
29.40	
83	 R003	 Copy004	 1001	 Lib002	 2	 001A002	 2016-08-30	
19:07:02	
2016-12-12	
19:16:50	
25.20	
84	 R002	 Copy005	 1002	 Lib003	 1	 001A002	 2016-09-05	
19:07:09	
2016-12-12	
19:16:51	
23.40	
85	 R002	 Copy032	 1013	 Lib004	 1	 032B003	 2016-09-20	
19:07:17	
2016-12-12	
19:16:53	
18.90	
86	 R005	 Copy033	 1014	 Lib001	 1	 033B001	 2016-09-22	
19:07:25	
2016-12-12	
19:16:55	
18.30	
87	 R003	 Copy014	 1003	 Lib003	 1	 001A003	 2016-10-09	
19:07:33	
2016-12-12	
19:16:57	
13.20
LIBRARY	DATBASE	APPLICATION	
88	 R002	 Copy006	 1002	 Lib003	 2	 002A002	 2016-10-12	
19:07:41	
2016-12-12	
19:16:59	
12.30	
89	 R002	 Copy015	 1004	 Lib004	 1	 014A003	 2016-10-19	
19:07:47	
2016-12-12	
19:17:00	
10.20	
90	 R005	 Copy020	 1006	 Lib001	 1	 020A001	 2016-11-10	
19:07:52	
2016-12-12	
19:17:33	
3.60	
91	 R002	 Copy026	 1009	 Lib002	 1	 026B002	 2016-11-18	
19:07:59	
2016-12-12	
19:17:41	
1.20	
92	 R002	 Copy011	 1002	 Lib004	 1	 002A002	 2016-11-22	
19:08:07	
2016-12-12	
19:17:45	
0.0	
93	 R001	 Copy016	 1004	 Lib001	 1	 016A001	 2016-11-28	
19:08:12	
2016-12-12	
19:17:58	
0.0	
94	 R002	 Copy021	 1006	 Lib003	 1	 021A001	 2016-12-02	
19:08:18	
2016-12-12	
19:18:05	
0.0	
95	 R002	 Copy028	 1010	 Lib004	 1	 028B003	 2016-12-08	
19:08:25	
2016-12-12	
19:18:07	
0.0	
	
copy		 	 	 	 	 	 	 	 	 docDescriptor	 	
CopyId	 DocId	 LibId	 CopyNo	 Position	
Copy002	 1001	 Lib001	 2	 002A001	
Copy004	 1001	 Lib002	 2	 001A002	
Copy005	 1002	 Lib003	 1	 001A002	
Copy006	 1002	 Lib003	 2	 002A002	
Copy007	 1001	 Lib003	 1	 002A001	
Copy008	 1001	 Lib004	 1	 002A002	
Copy009	 1002	 Lib001	 1	 002A003	
Copy010	 1002	 Lib002	 1	 003A003	
Copy011	 1002	 Lib004	 1	 002A002	
Copy012	 1003	 Lib001	 1	 004A001	
Copy013	 1003	 Lib001	 2	 005A002	
Copy014	 1003	 Lib003	 1	 001A003	
Copy015	 1004	 Lib004	 1	 014A003	
Copy016	 1004	 Lib001	 1	 016A001	
Copy017	 1004	 Lib003	 1	 017A004	
Copy018	 1005	 Lib002	 1	 018A003	
Copy019	 1005	 Lib004	 1	 019A002	
Copy020	 1006	 Lib001	 1	 020A001	
Copy021	 1006	 Lib003	 1	 021A001	
Copy025	 1008	 Lib004	 1	 025B004	
Copy026	 1009	 Lib002	 1	 026B002	
Copy027	 1009	 Lib003	 1	 027B003	
Copy028	 1010	 Lib004	 1	 028B003	
Copy029	 1010	 Lib001	 1	 029B004	
Copy030	 1011	 Lib002	 1	 030B002	
Copy031	 1012	 Lib003	 1	 031B003	
DocId	 Descriptor	
1001	 HarryPotter	
1002	 HarryPotter	
1003	 HarryPotter	
1004	 HarryPotter	
1005	 Vampire	
1006	 Vampire	
1007	 Vampire	
1008	 Vampire	
1009	 Vampire	
1010	 Vampire	
1011	 Superhero	
1012	 Superhero	
1013	 Superhero	
1014	 Superhero	
1015	 Beasts	
1016	 HarryPotter	
1017	 Culture
LIBRARY	DATBASE	APPLICATION	
Copy032	 1013	 Lib004	 1	 032B003	
Copy033	 1014	 Lib001	 1	 033B001	
Copy034	 1015	 Lib002	 1	 034A002	
Copy035	 1016	 Lib003	 1	 033B003	
Copy036	 1017	 Lib001	 1	 036B001	
	
	
books	 	 	 	 	 	 	 author	
DocId		
(int)	
ISBN	
1001	 ISBN001	
1002	 ISBN002	
1003	 ISBN003	
1004	 ISBN004	
1011	 ISBN008	
1012	 ISBN009	
1015	 ISBN010	
	
Jourrnals	 	 	 	 	 	 	 	 cEditor	 	
DocId		 VolumeNo		 IssueNo		 CId		 GId	 Scope		
1005	 1	 1	 C001	 G001	 Action		
1006	 1	 2	 C001	 G002	 Action			
1007	 1	 1	 C002	 G001	 Comedy			
1008	 1	 2	 C002	 G002	 Comedy		
1013	 1	 1	 C001	 G001	 Sci	Fi		
1014	 2	 1	 C001	 G002	 Sci	Fi		
1016	 1	 1	 C002	 G002	 Science	
	
PROCEEDINGS	 	 	 	 	 	 	 	 gEditor	
DocId		 CDate	 CLocation	 CChair	
1009	 2016-
12-02	
Newark		 Trump		
1010	 2016-
12-18		
New	York	 Clinton		
1017	 2016-
12-12	
Washington		 Obama		
	
	
AuthorId	 AuthorName	
Auth001	 J.K.	Rowling		
Auth002	 Stephenie	Meyer		
Auth003	 Marvel		
CId	 CName	
C001	 Sharukh	Khan		
C002	 Salman	Khan	
GId	 GName	
G001	 Aamir	Khan	
G002	 Hrithik	Roshan
LIBRARY	DATBASE	APPLICATION	
COPYDATA	
CopyId	 DocId	 LibId	 CopyNo	 Position	
Copy001	 1001	 Lib001	 1	 001A001	
Copy002	 1001	 Lib001	 2	 002A001	
Copy003	 1001	 Lib002	 1	 001A001	
Copy004	 1001	 Lib002	 2	 001A002	
Copy005	 1002	 Lib003	 1	 001A002	
Copy006	 1002	 Lib003	 2	 002A002	
Copy007	 1001	 Lib003	 1	 002A001	
Copy018	 1001	 Lib004	 1	 002A002	
Copy009	 1002	 Lib001	 1	 002A003	
Copy010	 1002	 Lib002	 1	 003A003	
Copy011	 1002	 Lib004	 2	 002A002	
Copy012	 1003	 Lib001	 1	 004A001	
Copy013	 1003	 Lib001	 2	 005A002	
Copy014	 1003	 Lib003	 1	 001A003	
Copy015	 1004	 Lib004	 1	 014A003	
Copy016	 1004	 Lib001	 1	 016A001	
Copy017	 1004	 Lib003	 1	 017A004	
Copy018	 1005	 Lib002	 1	 018A003	
Copy019	 1005	 Lib004	 1	 019A002	
Copy020	 1006	 Lib001	 1	 020A001	
Copy021	 1006	 Lib003	 1	 021A001	
Copy022	 1006	 Lib004	 1	 022A003	
Copy023	 1007	 Lib001	 1	 023A001	
Copy024	 1008	 Lib002	 1	 024A002	
Copy025	 1008	 Lib004	 1	 025A004	
Copy026	 1009	 Lib002	 1	 026B002	
Copy027	 1009	 Lib003	 1	 027B003	
Copy028	 1010	 Lib004	 1	 028B003	
Copy029	 1010	 Lib001	 1	 029B004	
Copy030	 1011	 Lib002	 1	 030B002	
Copy031	 1012	 Lib003	 1	 031B003	
Copy032	 1013	 Lib004	 1	 032B003	
Copy033	 1014	 Lib001	 1	 033B001	
Copy034	 1015	 Lib002	 1	 034A002	
Copy035	 1016	 Lib003	 1	 033B003	
Copy036	 1017	 Lib001	 1	 036B001
LIBRARY	DATBASE	APPLICATION	
	
STORES		 	 	 	 	 	 	 	 	
CopyId	 DocId	 LibId	
Copy002	 1001	 Lib001	
Copy004	 1001	 Lib002	
Copy007	 1001	 Lib003	
Copy008	 1001	 Lib004	
Copy009	 1002	 Lib001	
Copy010	 1002	 Lib002	
Copy005	 1002	 Lib003	
Copy006	 1002	 Lib003	
Copy011	 1002	 Lib004	
Copy012	 1003	 Lib001	
Copy013	 1003	 Lib001	
Copy014	 1003	 Lib003	
Copy016	 1004	 Lib001	
Copy017	 1004	 Lib003	
Copy015	 1004	 Lib004	
Copy018	 1005	 Lib002	
Copy019	 1005	 Lib004	
Copy020	 1006	 Lib001	
Copy021	 1006	 Lib003	
Copy025	 1008	 Lib004	
Copy026	 1009	 Lib002	
Copy027	 1009	 Lib003	
Copy029	 1010	 Lib001	
Copy028	 1010	 Lib004	
Copy030	 1011	 Lib002	
Copy031	 1012	 Lib003	
Copy032	 1013	 Lib004	
Copy033	 1014	 Lib001	
Copy034	 1015	 Lib002	
Copy035	 1016	 Lib003	
Copy036	 1017	 Lib001
LIBRARY	DATBASE	APPLICATION	
USER	GUIDE
LIBRARY	DATBASE	APPLICATION	
	
	
1. Home:	
	
2. Admin Login:
Ø Admin Enters username and password.
LIBRARY	DATBASE	APPLICATION	
Admin Home:
Ø Admin can add Reader by entering following details.
Ø Admin can remove Reader by entering Reader Id.
LIBRARY	DATBASE	APPLICATION	
Ø Popular documents are listed based on number of
times borrowed.
Ø Entire Document list can be viewed.
LIBRARY	DATBASE	APPLICATION	
3. Employee:
Ø Employee Login
Ø Employee Home page:
Ø List of Readers can be seen.
LIBRARY	DATBASE	APPLICATION	
Ø Books are listed
Ø New books can be entered.
LIBRARY	DATBASE	APPLICATION	
Ø Journals are listed.
Ø New Journals can be entered.
LIBRARY	DATBASE	APPLICATION	
Ø Proceeding are listed.
Ø New Proceedings can be entered.
LIBRARY	DATBASE	APPLICATION	
Ø Borrowed Documents:
o When Employee press the return button , fine is
calculated based on borrowed date/time and
returned date/time.
Ø Reserved Documents:
o Employee can approve or decline a reservation.
LIBRARY	DATBASE	APPLICATION	
4. Reader Home:
Ø Reader can search documents by Document Id, Title,
Author, Document Type, Library Name.
LIBRARY	DATBASE	APPLICATION	
Ø Reader can reserve a copy by pressing reserve button.
Ø Reader is prompted with message whether the
reservation is successful or not.

More Related Content

Similar to Library Database Application report

Lifting the Lid on Linked Data
Lifting the Lid on Linked DataLifting the Lid on Linked Data
Lifting the Lid on Linked DataJane Stevenson
 
Getting started with looking up metadata
Getting started with looking up metadataGetting started with looking up metadata
Getting started with looking up metadataCrossref
 
Library management system version 2 using to CodeIgniter 4 Framework PPT
Library management system version 2 using to CodeIgniter 4 Framework PPTLibrary management system version 2 using to CodeIgniter 4 Framework PPT
Library management system version 2 using to CodeIgniter 4 Framework PPTDhanajayan K
 
Dcap Ja Progmeet 2007 07 05
Dcap Ja Progmeet 2007 07 05Dcap Ja Progmeet 2007 07 05
Dcap Ja Progmeet 2007 07 05Julie Allinson
 
Ag Data Commons: Agricultural research metadata and data
Ag Data Commons: Agricultural research metadata and dataAg Data Commons: Agricultural research metadata and data
Ag Data Commons: Agricultural research metadata and dataCyndy Parr
 
Library management system project
Library management system projectLibrary management system project
Library management system projectAJAY KUMAR
 
Crossref Content Registration - LIVE Mumbai
Crossref Content Registration - LIVE MumbaiCrossref Content Registration - LIVE Mumbai
Crossref Content Registration - LIVE MumbaiCrossref
 
Software requirements specification of Library Management System
Software requirements specification of Library Management SystemSoftware requirements specification of Library Management System
Software requirements specification of Library Management SystemSoumili Sen
 
Digital Library System
Digital Library SystemDigital Library System
Digital Library SystemJudy T Raj
 
Dublin Core Application Profile for Scholarly Works Slainte
Dublin Core Application Profile for Scholarly Works SlainteDublin Core Application Profile for Scholarly Works Slainte
Dublin Core Application Profile for Scholarly Works SlainteJulie Allinson
 
finde datasets repository.pptx
finde datasets repository.pptxfinde datasets repository.pptx
finde datasets repository.pptxhasanrdhaiwi
 
Handout endnote x4
Handout endnote x4Handout endnote x4
Handout endnote x4CL Gan
 

Similar to Library Database Application report (20)

Lifting the Lid on Linked Data
Lifting the Lid on Linked DataLifting the Lid on Linked Data
Lifting the Lid on Linked Data
 
Longwell final ppt
Longwell final pptLongwell final ppt
Longwell final ppt
 
Getting started with looking up metadata
Getting started with looking up metadataGetting started with looking up metadata
Getting started with looking up metadata
 
Library management system version 2 using to CodeIgniter 4 Framework PPT
Library management system version 2 using to CodeIgniter 4 Framework PPTLibrary management system version 2 using to CodeIgniter 4 Framework PPT
Library management system version 2 using to CodeIgniter 4 Framework PPT
 
Dcap Ja Progmeet 2007 07 05
Dcap Ja Progmeet 2007 07 05Dcap Ja Progmeet 2007 07 05
Dcap Ja Progmeet 2007 07 05
 
Ag Data Commons: Agricultural research metadata and data
Ag Data Commons: Agricultural research metadata and dataAg Data Commons: Agricultural research metadata and data
Ag Data Commons: Agricultural research metadata and data
 
E-library mangament system
E-library mangament systemE-library mangament system
E-library mangament system
 
Library management system project
Library management system projectLibrary management system project
Library management system project
 
Crossref Content Registration - LIVE Mumbai
Crossref Content Registration - LIVE MumbaiCrossref Content Registration - LIVE Mumbai
Crossref Content Registration - LIVE Mumbai
 
RESTful API in Node.pdf
RESTful API in Node.pdfRESTful API in Node.pdf
RESTful API in Node.pdf
 
Software requirements specification of Library Management System
Software requirements specification of Library Management SystemSoftware requirements specification of Library Management System
Software requirements specification of Library Management System
 
Digital Library System
Digital Library SystemDigital Library System
Digital Library System
 
MY FIRST PPT
MY FIRST PPTMY FIRST PPT
MY FIRST PPT
 
Dublin Core Application Profile for Scholarly Works Slainte
Dublin Core Application Profile for Scholarly Works SlainteDublin Core Application Profile for Scholarly Works Slainte
Dublin Core Application Profile for Scholarly Works Slainte
 
finde datasets repository.pptx
finde datasets repository.pptxfinde datasets repository.pptx
finde datasets repository.pptx
 
Srs library m s
Srs library m sSrs library m s
Srs library m s
 
Library Linked Data and the Future of Bibliographic Control
Library Linked Data and the Future of Bibliographic ControlLibrary Linked Data and the Future of Bibliographic Control
Library Linked Data and the Future of Bibliographic Control
 
Handout endnote x4
Handout endnote x4Handout endnote x4
Handout endnote x4
 
Azure DocumentDB
Azure DocumentDBAzure DocumentDB
Azure DocumentDB
 
Library management project
Library management projectLibrary management project
Library management project
 

Recently uploaded

Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 

Recently uploaded (20)

Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 

Library Database Application report

  • 1. LIBRARY DATBASE APPLICATION NEW JERSEY INSTITUTE OF TECHNOLOGY CS631-DATABASE MANAGEMENT SYSTEMS DESIGN PROJECT DELIVERABLE 3 LIBRARY DATABASE APPLICATION Submitted by: - VENKATA BHASKARA ANURAAG MOTURI (31403499) NIKHIL REDDY BHIMIREDDY (31404974) MAMILLA RISHI VENKATESH (31398276)
  • 2. LIBRARY DATBASE APPLICATION 2. TABLE OF CONTENTS 1. Overview of the project 2. EER Model 3. Relational Model 4. Sql Table 5. Constraints 6. Tables with sample data 7. User Guide 8. Source Code
  • 3. LIBRARY DATBASE APPLICATION Overview of the project: The goal of the project is to Analyze, design, implement, and document a library database system application. This system is implemented on DBMS with PHP as a host-language for the application. This system is menu- driven and includes all the basic functionalities as per the requirement. This project (Library Database Application) is a general purpose project, which satisfies all the needs of a typical Library system. The project has been tailored to solve the problems faced by the Admin, Employees and Readers in a manual processing of the information. Librarian usually perform their work manually in which large amount of time and human effort is wasted in retrieving information, handling of huge data, generation of reports, updating of data etc. These problems can be easily solved by the automation of existing Library information. The package “Library Database Application” is fully menu driven and provide very quick and accurate information about all the Readers, issued and return status of documents etc. Library Database Application has been made a view to provide the Admin, Employees and Readers with better facilities to obtain documents. The main purpose is to provide easy and convenient way to the Readers to get or issue documents from Library. The system provides information about issued and returned status of the documents. This also provides the information of which document is issued to which Reader. Different Readers have different choices of documents as per their requirement, this system provides easy navigational features which provides a very user-friendly interface which help the students, staff, etc. to obtain documents easily. The library contains several branches and each library is given its own library ID, name and address. The library has information about all its documents available with specific document ID. The documents can be either books, journals, proceedings. So each category of documents has their own title, ID
  • 4. LIBRARY DATBASE APPLICATION to identify and the names of authors, publishers and editors and their details are recorded. With the help of this data the documents can be searched by the readers. Each library branch can have multiple copies of the same document and the position of the copy in the library should also be noted with specific codes so the reader can collect the document easily. Each reader is given a reader ID when they sign up with the library and the details of the reader like the name, address, phone numbers and the type of reader (“student, “lecturer”, “staff”, “senior citizen”, etc.) is stored in the library database before they borrow a document. Readers also have the option to reserve books on the online catalogue with a condition that they have to collect it before 6 pm the same day else the reservation will be cancelled and the document will be available to other readers. After the document is borrowed by the reader the borrowed data and time will be recorded by the library and the document must be returned within 20 days post the borrow date. If not returned within the return date time, the reader will be fined at 30 cents per day after the return date time. There is also a condition the document must be returned to the same library branch where it has been borrowed. Problems faced: Ø While reserving, borrowing and returning a copy. Ø While recording the returned date. Ø While calculating the fine when reader returns a copy after 20 days. Ø While restricting the reader to reserve/borrow to maximum of 10 copies. Ø While restricting the reader to reserve/borrow a copy before 6 PM. Ø While Cancelling the reservations after 6 PM. Ø While restoring a copy to the exact location and the library from where it was borrowed. Ø While issuing a wait list number to a reader when a copy is not available in that library. All the problems and the constraints were solved, expect for issuing a wait list number to a reader. This can be solved in further study.
  • 6. LIBRARY DATBASE APPLICATION Relational Model Relational Model: DOCUMENT Doc_ID Title PDate Public_ID Author_ID DOCUMENT_DESCRIPTOR Doc_ID Descriptor LIBRARY_BRANCH Lib_ID Name Location READER Reader_ID Address Reader_Name Type Phone_num BOR_TRANSACTION BorNumber BorDateTime RetDateTime RESERVATION ResNumber ResDateTime BORROWS BorNumber Reader_ID DocID libID copyNo RESERVES ResNumber ReaderID DocID libID copyNo PUBLISHER PublisherID PubName Address Author AuthorID AName COPY CopyNo DocID LibID position WRITES AuthorID DocID BOOK ISBN DocID PROCEEDINGS DocID CDate CLocation CEdition JOURNAL_VOLUME VolumeNo DocID JOURNAL_ISSUE IssueNo VolumeNo Scope DocID CHIEF_EDITOR EditorID VolumeNo EName DocID JOURNAL_EDITION DocID IssueNo IEditor
  • 7. LIBRARY DATBASE APPLICATION SQL Tables /*author*/ CREATE TABLE `author` ( `AuthorId` varchar(25) NOT NULL, `AuthorName` varchar(50) NOT NULL, PRIMARY KEY (`AuthorId`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*books*/ CREATE TABLE `books` ( `DocId` int(11) NOT NULL, `ISBN` varchar(13) NOT NULL, PRIMARY KEY (`DocId`), KEY `DocId` (`DocId`), CONSTRAINT `books_ibfk_1` FOREIGN KEY (`DocId`) REFERENCES `document` (`DocId`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*borrows*/ CREATE TABLE `borrows` ( `BorNum` int(10) NOT NULL AUTO_INCREMENT, `ReaderId` varchar(25) NOT NULL, `CopyId` varchar(10) NOT NULL, `DocId` int(11) NOT NULL,
  • 8. LIBRARY DATBASE APPLICATION `LibId` varchar(25) NOT NULL, `CopyNo` varchar(25) NOT NULL, `Position` varchar(10) NOT NULL, `BorDateTime` datetime DEFAULT NULL, `RetDateTime` datetime DEFAULT NULL, `Fine` double(10,2) DEFAULT NULL, PRIMARY KEY (`BorNum`,`CopyId`), KEY `ReaderId` (`ReaderId`), KEY `DocId` (`DocId`), CONSTRAINT `borrows_ibfk_1` FOREIGN KEY (`ReaderId`) REFERENCES `reader` (`ReaderId`), CONSTRAINT `borrows_ibfk_2` FOREIGN KEY (`DocId`) REFERENCES `document` (`DocId`) ) ENGINE=InnoDB AUTO_INCREMENT=48 DEFAULT CHARSET=latin1 /*ceditor*/ CREATE TABLE `ceditor` ( `CId` varchar(10) NOT NULL, `CName` varchar(20) NOT NULL, PRIMARY KEY (`CId`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*copy*/ CREATE TABLE `copy` ( `CopyId` varchar(10) NOT NULL,
  • 9. LIBRARY DATBASE APPLICATION `DocId` int(10) NOT NULL, `LibId` varchar(10) NOT NULL, `CopyNo` int(10) NOT NULL, `Position` varchar(10) NOT NULL, PRIMARY KEY (`CopyId`), KEY `DocId` (`DocId`), KEY `LibId` (`LibId`), CONSTRAINT `copy_ibfk_1` FOREIGN KEY (`DocId`) REFERENCES `document` (`DocId`), CONSTRAINT `copy_ibfk_2` FOREIGN KEY (`LibId`) REFERENCES `libraryBranch` (`LibId`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*copyData*/ CREATE TABLE `copyData` ( `CopyId` varchar(10) NOT NULL, `DocId` int(10) NOT NULL, `LibId` varchar(10) NOT NULL, `CopyNo` int(10) NOT NULL, `Position` varchar(10) NOT NULL, PRIMARY KEY (`CopyId`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*docDescriptor*/ CREATE TABLE `docDescriptor` (
  • 10. LIBRARY DATBASE APPLICATION `DocId` int(11) NOT NULL, `Descriptor` varchar(50) NOT NULL, PRIMARY KEY (`DocId`,`Descriptor`), CONSTRAINT `docdescriptor_ibfk_1` FOREIGN KEY (`DocId`) REFERENCES `document` (`DocId`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*document*/ CREATE TABLE `document` ( `DocId` int(10) NOT NULL, `Title` varchar(50) NOT NULL, `PublishDate` date DEFAULT NULL, `PubId` varchar(25) DEFAULT NULL, `AuthorId` varchar(10) DEFAULT NULL, `DocType` varchar(10) DEFAULT NULL, PRIMARY KEY (`DocId`), KEY `PubId` (`PubId`), KEY `AuthorId` (`AuthorId`), CONSTRAINT `document_ibfk_1` FOREIGN KEY (`PubId`) REFERENCES `publisher` (`PubId`), CONSTRAINT `document_ibfk_3` FOREIGN KEY (`AuthorId`) REFERENCES `author` (`AuthorId`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*geditor*/ CREATE TABLE `geditor` ( `GId` varchar(10) NOT NULL,
  • 11. LIBRARY DATBASE APPLICATION `GName` varchar(20) NOT NULL, PRIMARY KEY (`GId`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*journals*/ CREATE TABLE `journals` ( `DocId` int(10) NOT NULL, `VolumeNo` int(10) NOT NULL, `IssueNo` int(10) NOT NULL, `CId` varchar(10) NOT NULL, `GId` varchar(10) NOT NULL, `Scope` varchar(50) NOT NULL, PRIMARY KEY (`DocId`), KEY `DocId` (`DocId`), KEY `CId` (`CId`), KEY `GId` (`GId`), CONSTRAINT `journals_ibfk_1` FOREIGN KEY (`DocId`) REFERENCES `document` (`DocId`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `journals_ibfk_2` FOREIGN KEY (`CId`) REFERENCES `ceditor` (`CId`), CONSTRAINT `journals_ibfk_3` FOREIGN KEY (`GId`) REFERENCES `geditor` (`GId`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1
  • 12. LIBRARY DATBASE APPLICATION /*libraryBranch*/ CREATE TABLE `libraryBranch` ( `LibId` varchar(25) NOT NULL, `LibName` varchar(20) NOT NULL, `Location` varchar(50) NOT NULL, PRIMARY KEY (`LibId`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*proceedings*/ CREATE TABLE `proceedings` ( `DocId` int(11) NOT NULL, `CDate` date NOT NULL, `CLocation` varchar(25) NOT NULL, `CChair` varchar(25) NOT NULL, PRIMARY KEY (`DocId`), CONSTRAINT `proceedings_ibfk_1` FOREIGN KEY (`DocId`) REFERENCES `document` (`DocId`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*publisher*/ CREATE TABLE `publisher` ( `PubId` varchar(25) NOT NULL, `PubName` varchar(50) NOT NULL, `Address` varchar(50) NOT NULL,
  • 13. LIBRARY DATBASE APPLICATION PRIMARY KEY (`PubId`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*reader*/ CREATE TABLE `reader` ( `ReaderId` varchar(25) NOT NULL, `ReaderName` varchar(50) NOT NULL, `Address` varchar(50) NOT NULL, `ReaderType` varchar(15) NOT NULL, `PhoneNumber` varchar(10) NOT NULL, PRIMARY KEY (`ReaderId`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*reserves*/ CREATE TABLE `reserves` ( `ResNo` int(10) NOT NULL AUTO_INCREMENT, `ReaderId` varchar(50) NOT NULL, `CopyId` varchar(10) NOT NULL, `DocId` int(11) NOT NULL, `LibId` varchar(25) NOT NULL, `CopyNo` varchar(25) NOT NULL, `Position` varchar(10) NOT NULL, `ResDateTime` datetime DEFAULT NULL, PRIMARY KEY (`ResNo`), KEY `ReaderId` (`ReaderId`),
  • 14. LIBRARY DATBASE APPLICATION CONSTRAINT `reserves_ibfk_1` FOREIGN KEY (`ReaderId`) REFERENCES `reader` (`ReaderId`) ) ENGINE=InnoDB AUTO_INCREMENT=92 DEFAULT CHARSET=latin1 /*stores*/ CREATE TABLE `stores` ( `DocId` int(11) NOT NULL, `LibId` varchar(20) NOT NULL, `CopyId` varchar(20) NOT NULL, PRIMARY KEY (`DocId`,`LibId`,`CopyId`), KEY `LibId` (`LibId`), KEY `stores_ibfk_3` (`CopyId`), CONSTRAINT `stores_ibfk_1` FOREIGN KEY (`DocId`) REFERENCES `document` (`DocId`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `stores_ibfk_2` FOREIGN KEY (`LibId`) REFERENCES `libraryBranch` (`LibId`), CONSTRAINT `stores_ibfk_3` FOREIGN KEY (`CopyId`) REFERENCES `copy` (`CopyId`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=latin1
  • 15. LIBRARY DATBASE APPLICATION Constraints Ø Each document has single publisher. Ø Reader have access to the online catalogue of documents and may reserve books by title if they are available. A reserved book has to be picked up before 6 pm; otherwise, the reservation is cancelled. Ø A reader cannot borrow or reserve more than 10 documents. Ø Borrowing is defined as taking out a copy of a document on one date and time (BDateTime) and returning it a maximum of 20 days later. (RDateTime) is the date on which the copy of the borrowed document is actually returned. (RDateTime) is NULL if the document has not yet been returned). Ø Document has to be returned to the branch from which they are borrowed. Ø The same copy of a document can be reserved and/or borrowed by the same reader several times. Ø Document that are not returned on time are fined at a rate of 30 cents for each day after the due date. Ø The (RDateTime) for a document and the beginning of a new loan for same document are always at least a day apart. (a document copy cannot be borrowed and returned several times in the same day.) Ø When a document is not available anywhere, the reader can ask to be put on a waiting list. Ø A copy of a document cannot be lent to more than one reader at a time (it cannot be lent to a group of people), but a reader can borrow several copies of different documents. Ø The library wishes to have a record of all borrowing.
  • 16. LIBRARY DATBASE APPLICATION TABLES reserves ResNo ReaderId CopyId DocId (int) LibId CopyNo Position ResDateTime 146 R004 Copy024 1008 Lib002 1 024A002 2016-12-12 19:09:07 149 R001 Copy022 1007 Lib004 1 022A003 2016-12-12 19:09:16 150 R005 Copy023 1007 Lib001 1 023A001 2016-12-12 19:09:23 151 R001 Copy003 1001 Lib002 1 001A001 2016-12-12 19:09:33 152 R001 Copy001 1001 Lib001 1 001A001 2016-12-12 19:36:37 publisher libraryBranch PubId PubName Address Pub001 New Jersey Publications New Jersey Pub002 New York Publications New York Pub003 California Publications California document DocId Title PublishDate PubId AuthorId DocType 1001 Sorcerer’s stone 1997-11-06 Pub001 Auth001 Book 1002 Chamber of secrets 1998-08-11 Pub001 Auth001 Book 1003 Prisoners of Azkaban 1999-02-03 Pub002 Auth001 Book 1004 Goblet of fire 2000-01-23 Pub002 Auth001 Book 1005 Twilight 2005-12-02 Pub001 Auth002 Journal 1006 Twilight 2005-12-30 Pub002 Auth002 Journal 1007 New Moon 2006-03-03 Pub003 Auth002 Journal 1008 New Moon 2006-05-05 Pub002 Auth002 Journal 1009 Eclipse 2007-03-03 Pub003 Auth002 Proceeding LibId LibName Location Lib001 Royal Library Kearny Lib002 National Library Harrison Lib003 Thomas Library Rutherford Lib004 State Library North Arlington
  • 17. LIBRARY DATBASE APPLICATION 1010 Breaking Dawn 2008-09-03 Pub002 Auth002 Proceeding 1011 Avengers 2015-09-23 Pub002 Auth003 Book 1012 Winter Soldier 2012-09-07 Pub001 Auth001 Book 1013 The Dark Knight 2016-05-11 Pub002 Auth003 Journal 1014 The Dark Knight 2016-09-08 Pub002 Auth003 Journal 1015 Fantastic Beasts 2016-11-20 Pub003 Auth001 Book 1016 The Half Blood Prince 2008-09-23 Pub002 Auth002 Journal 1017 American Culture 2010-10-20 Pub001 Auth003 Proceeding reader ReaderId ReaderName Address ReaderType PhoneNumber 3001 Nikhil Nizampet Student 2013557019 3002 Akhil Arlington Employee 2018896582 3003 Anuraag Miyapur Employee 5512539305 3004 Cherry Kearny Student 7329848673 3005 Rohit Dilsukhnagar Professor 7323254300 3006 Sathish Chennai Student 5515802072 3007 Pawankalyan Hyderabad Student 5512537029 3008 Balakrishna Vijayawada Professor 9952915515 borrows BorNum ReaderId CopyId DocId LibId CopyNo Position BorDateTime RetDateTime Fine 80 R001 Copy001 1001 Lib001 1 001A001 2016-08-01 19:06:45 2016-12-12 19:16:45 33.90 81 R002 Copy009 1002 Lib001 1 002A003 2016-08-02 19:06:52 2016-12-12 19:16:48 33.60 82 R002 Copy002 1001 Lib001 2 002A001 2016-08-16 19:06:56 2016-12-12 19:16:49 29.40 83 R003 Copy004 1001 Lib002 2 001A002 2016-08-30 19:07:02 2016-12-12 19:16:50 25.20 84 R002 Copy005 1002 Lib003 1 001A002 2016-09-05 19:07:09 2016-12-12 19:16:51 23.40 85 R002 Copy032 1013 Lib004 1 032B003 2016-09-20 19:07:17 2016-12-12 19:16:53 18.90 86 R005 Copy033 1014 Lib001 1 033B001 2016-09-22 19:07:25 2016-12-12 19:16:55 18.30 87 R003 Copy014 1003 Lib003 1 001A003 2016-10-09 19:07:33 2016-12-12 19:16:57 13.20
  • 18. LIBRARY DATBASE APPLICATION 88 R002 Copy006 1002 Lib003 2 002A002 2016-10-12 19:07:41 2016-12-12 19:16:59 12.30 89 R002 Copy015 1004 Lib004 1 014A003 2016-10-19 19:07:47 2016-12-12 19:17:00 10.20 90 R005 Copy020 1006 Lib001 1 020A001 2016-11-10 19:07:52 2016-12-12 19:17:33 3.60 91 R002 Copy026 1009 Lib002 1 026B002 2016-11-18 19:07:59 2016-12-12 19:17:41 1.20 92 R002 Copy011 1002 Lib004 1 002A002 2016-11-22 19:08:07 2016-12-12 19:17:45 0.0 93 R001 Copy016 1004 Lib001 1 016A001 2016-11-28 19:08:12 2016-12-12 19:17:58 0.0 94 R002 Copy021 1006 Lib003 1 021A001 2016-12-02 19:08:18 2016-12-12 19:18:05 0.0 95 R002 Copy028 1010 Lib004 1 028B003 2016-12-08 19:08:25 2016-12-12 19:18:07 0.0 copy docDescriptor CopyId DocId LibId CopyNo Position Copy002 1001 Lib001 2 002A001 Copy004 1001 Lib002 2 001A002 Copy005 1002 Lib003 1 001A002 Copy006 1002 Lib003 2 002A002 Copy007 1001 Lib003 1 002A001 Copy008 1001 Lib004 1 002A002 Copy009 1002 Lib001 1 002A003 Copy010 1002 Lib002 1 003A003 Copy011 1002 Lib004 1 002A002 Copy012 1003 Lib001 1 004A001 Copy013 1003 Lib001 2 005A002 Copy014 1003 Lib003 1 001A003 Copy015 1004 Lib004 1 014A003 Copy016 1004 Lib001 1 016A001 Copy017 1004 Lib003 1 017A004 Copy018 1005 Lib002 1 018A003 Copy019 1005 Lib004 1 019A002 Copy020 1006 Lib001 1 020A001 Copy021 1006 Lib003 1 021A001 Copy025 1008 Lib004 1 025B004 Copy026 1009 Lib002 1 026B002 Copy027 1009 Lib003 1 027B003 Copy028 1010 Lib004 1 028B003 Copy029 1010 Lib001 1 029B004 Copy030 1011 Lib002 1 030B002 Copy031 1012 Lib003 1 031B003 DocId Descriptor 1001 HarryPotter 1002 HarryPotter 1003 HarryPotter 1004 HarryPotter 1005 Vampire 1006 Vampire 1007 Vampire 1008 Vampire 1009 Vampire 1010 Vampire 1011 Superhero 1012 Superhero 1013 Superhero 1014 Superhero 1015 Beasts 1016 HarryPotter 1017 Culture
  • 19. LIBRARY DATBASE APPLICATION Copy032 1013 Lib004 1 032B003 Copy033 1014 Lib001 1 033B001 Copy034 1015 Lib002 1 034A002 Copy035 1016 Lib003 1 033B003 Copy036 1017 Lib001 1 036B001 books author DocId (int) ISBN 1001 ISBN001 1002 ISBN002 1003 ISBN003 1004 ISBN004 1011 ISBN008 1012 ISBN009 1015 ISBN010 Jourrnals cEditor DocId VolumeNo IssueNo CId GId Scope 1005 1 1 C001 G001 Action 1006 1 2 C001 G002 Action 1007 1 1 C002 G001 Comedy 1008 1 2 C002 G002 Comedy 1013 1 1 C001 G001 Sci Fi 1014 2 1 C001 G002 Sci Fi 1016 1 1 C002 G002 Science PROCEEDINGS gEditor DocId CDate CLocation CChair 1009 2016- 12-02 Newark Trump 1010 2016- 12-18 New York Clinton 1017 2016- 12-12 Washington Obama AuthorId AuthorName Auth001 J.K. Rowling Auth002 Stephenie Meyer Auth003 Marvel CId CName C001 Sharukh Khan C002 Salman Khan GId GName G001 Aamir Khan G002 Hrithik Roshan
  • 20. LIBRARY DATBASE APPLICATION COPYDATA CopyId DocId LibId CopyNo Position Copy001 1001 Lib001 1 001A001 Copy002 1001 Lib001 2 002A001 Copy003 1001 Lib002 1 001A001 Copy004 1001 Lib002 2 001A002 Copy005 1002 Lib003 1 001A002 Copy006 1002 Lib003 2 002A002 Copy007 1001 Lib003 1 002A001 Copy018 1001 Lib004 1 002A002 Copy009 1002 Lib001 1 002A003 Copy010 1002 Lib002 1 003A003 Copy011 1002 Lib004 2 002A002 Copy012 1003 Lib001 1 004A001 Copy013 1003 Lib001 2 005A002 Copy014 1003 Lib003 1 001A003 Copy015 1004 Lib004 1 014A003 Copy016 1004 Lib001 1 016A001 Copy017 1004 Lib003 1 017A004 Copy018 1005 Lib002 1 018A003 Copy019 1005 Lib004 1 019A002 Copy020 1006 Lib001 1 020A001 Copy021 1006 Lib003 1 021A001 Copy022 1006 Lib004 1 022A003 Copy023 1007 Lib001 1 023A001 Copy024 1008 Lib002 1 024A002 Copy025 1008 Lib004 1 025A004 Copy026 1009 Lib002 1 026B002 Copy027 1009 Lib003 1 027B003 Copy028 1010 Lib004 1 028B003 Copy029 1010 Lib001 1 029B004 Copy030 1011 Lib002 1 030B002 Copy031 1012 Lib003 1 031B003 Copy032 1013 Lib004 1 032B003 Copy033 1014 Lib001 1 033B001 Copy034 1015 Lib002 1 034A002 Copy035 1016 Lib003 1 033B003 Copy036 1017 Lib001 1 036B001
  • 21. LIBRARY DATBASE APPLICATION STORES CopyId DocId LibId Copy002 1001 Lib001 Copy004 1001 Lib002 Copy007 1001 Lib003 Copy008 1001 Lib004 Copy009 1002 Lib001 Copy010 1002 Lib002 Copy005 1002 Lib003 Copy006 1002 Lib003 Copy011 1002 Lib004 Copy012 1003 Lib001 Copy013 1003 Lib001 Copy014 1003 Lib003 Copy016 1004 Lib001 Copy017 1004 Lib003 Copy015 1004 Lib004 Copy018 1005 Lib002 Copy019 1005 Lib004 Copy020 1006 Lib001 Copy021 1006 Lib003 Copy025 1008 Lib004 Copy026 1009 Lib002 Copy027 1009 Lib003 Copy029 1010 Lib001 Copy028 1010 Lib004 Copy030 1011 Lib002 Copy031 1012 Lib003 Copy032 1013 Lib004 Copy033 1014 Lib001 Copy034 1015 Lib002 Copy035 1016 Lib003 Copy036 1017 Lib001
  • 23. LIBRARY DATBASE APPLICATION 1. Home: 2. Admin Login: Ø Admin Enters username and password.
  • 24. LIBRARY DATBASE APPLICATION Admin Home: Ø Admin can add Reader by entering following details. Ø Admin can remove Reader by entering Reader Id.
  • 25. LIBRARY DATBASE APPLICATION Ø Popular documents are listed based on number of times borrowed. Ø Entire Document list can be viewed.
  • 26. LIBRARY DATBASE APPLICATION 3. Employee: Ø Employee Login Ø Employee Home page: Ø List of Readers can be seen.
  • 27. LIBRARY DATBASE APPLICATION Ø Books are listed Ø New books can be entered.
  • 28. LIBRARY DATBASE APPLICATION Ø Journals are listed. Ø New Journals can be entered.
  • 29. LIBRARY DATBASE APPLICATION Ø Proceeding are listed. Ø New Proceedings can be entered.
  • 30. LIBRARY DATBASE APPLICATION Ø Borrowed Documents: o When Employee press the return button , fine is calculated based on borrowed date/time and returned date/time. Ø Reserved Documents: o Employee can approve or decline a reservation.
  • 31. LIBRARY DATBASE APPLICATION 4. Reader Home: Ø Reader can search documents by Document Id, Title, Author, Document Type, Library Name.
  • 32. LIBRARY DATBASE APPLICATION Ø Reader can reserve a copy by pressing reserve button. Ø Reader is prompted with message whether the reservation is successful or not.