Design Document Library Dbms
Design Document Library Dbms
ABSTRACT:-
various need of the user. The basic interface involves querying books
getting all information about due dates, due fines and due book about
page which is used for checking updates and all information about the
OUTLINE :-
their due dates, completion of the due dates and about due fines.
3. Information regarding course : information about the course and
library.
1. The students can issue the book without logging in, however in
name and password and user name can be used as key for
students.
search.
(e) Notification:
prices Name
Author
s
N 1
DOB
Issue
Issue
Students
Due Date
Students_ID
Student_Name Address
Return
Date
TABLES
1.PUBLISHER(Pub_ID,Pub_Add,Pub_Name,Pub_Email)
2.BOOKS (Book _ID,Book_Titles,Pub_Date,Pub_ID,Author,Copies)
3.Students(Student_ID,Students_Name,Students_ADD,Student_email,DOB)
Functional Dependencies
(pub_ID) (Pub-Add,Pub_Name,Pub_Email)
(Book_ID) (Book_Titles,Pub_date,Pub_ID,Authors,Copies)
(Students_ID) (Student_Name,Student_Add,Student_Email,Bod)
NORMALIZATION
Publisher Table
Pub_ID Pub_Name Pub_Email Pub_Add
123 Evergreen [email protected] Delhi,Gwalior,Patna
142 TMH [email protected] Kolkata,Asansol,Ranchi
Since it violates 1st normalization rules.
After 1st normalization
Pub_ID Pub_Name Pub_Email Pub_Add
123 Evergreen [email protected] Delhi
123 Evergreen [email protected] Gwalior
123 Evergreen [email protected] Patna
142 TMH [email protected] Kolkata
142 TMH [email protected] Asansol
142 TMH [email protected] Ranchi
Pub_ID Pub_Add
123 Delhi
123 Gwalior
123 Patna
142 kolkata
142 Asansol
142 Ranchi
BOOK
Book_ID Book_title Book_author Copies_ID Pub_ID Pub_Date
123 CN Andrew,Bau 101,102 123 28/04/98
It is not in the 1st normalization form because its attributes are not in
atomic.
Book_ID Book_Titles Book Copies_ID Pub_ID Pub_Date
_author
123 CN Andrew 101 123 28/04/98
123 CN Bau 101 123 28/04/98
123 CN Andrew 102 123 28/04/98
123 CN Bau 102 123 28/04/98
Since there is only one primary key and all the attributes are
dependent on that primary key so it is already in 2nd normalization
form.
And because all the attributes are directly dependent on primary key
and not on other columns.
After fourth normalization
In fourth normalization we see whether the table has multivalued or
not, it is having multivalued attributes therefore new table would be
BOOK
Book_ID Book_Table Pub_ID Pub_Date
123 CN 123 28/04/98
123 CN 123 28/04/98
123 CN 123 28/04/98
123 CN 123 28/04/98
AUTHOR
Author_ID Author_Name Author_Email
150 Andrew [email protected]
151 Bau [email protected]
COPIES
Copies_ID Book_ID
101 123
102 123
Since BOOK table and AUTHOR table are many to many relation so
we can make separate tables.
Book_ID Author_ID
123 150
123 151
ISSUE
Issue_ID Due_Date Issue_Date Return_Date
201 30/04/2016 15/04/2016 29/04/2016
202 10/04/2016 25/03/2016 09/04/2016
STUDENT
Student_ID Issued_ID
1997 501
1999 506