Dbms PR
Dbms PR
System
Index
1. Introduction
2. Tables
Book_Details
Binding_Details
Category_Details
Borrower_Details
Student_Details
Staff_Details
Student_Details
Shelf_Details
3. Normalization
4. ER-Diagram
5. SQL Command (select, update, insert, delete)
Introduction
The Database Library System is intended to Automate the library activities such as
creating a new borrower, giving books to the borrowers, maintaining the details of all the
item that were available in the books . This also helps the librarians by providing
information such as total copies available each book, list of books that belong to a
particular category (Short, Long Loan, Reference items, etc).
Tables
Book_Details:
This is the master table for all the books that are available in the Library. This table
contains the complete list of books that are available in the library. Each Book id
provided with a unique ISBN which serves as a primary key. The book details include
the ISBN, Book Title, the year in which that particular book was published, the type of
binding either soft cover or hard cover and the category.
Columns
ISBN: This is unique ID given to every book .Since there may be a large no. of books
with same TITLE, this ISBN no. will help us to distinguish between books of same title.
Category_Type
This column contains the Category ID whose details can be fetched form the
category_master table. The category ID is a Unique number given to each category.
Binding _Id
This column contains the Binding ID whose details can be fetched form the
Binding_Detailstable.The Binding ID is a Unique number given to each type Binding.
No_Of_Copies_Actual: This column contains the total no. of copies of each book that
were initially present.
No_Of_Copies_Current: This column contains the total no. of copies of each book that
were currently available .
Binding_Details:
This table is the Master table for the binding types.This includes the binding ID and
Binding Name. The Binding ID serves as a primary key.
Columns:
Binding_ID: This column contains the Unique number that was given to each type of
binding.
Binding_Name: This column give the names of different types of binding.
Category_Details:
This includes the Category ID and Category Name. The Category ID servers as a
primary key.
Columns:
Category _ID: This column contains the Unique number that was given to each type of
Category.
Category _Name: This column give the names of different types of categories.
Borrower_Details:
This table contains the details of all the persons who lent a book from the library. Each
Student will be given a Unique borrower ID. All the library related activity for a particular
person will be captured based on the Borrower ID. This table will be used to track the
borrowing records. The borrower ID will serve as a primary key here.
Columns:
Book_ID: This column contains the book ID which was give to the borrower.
Borrowed_From_Date: The date on which the book was given a particular borrower.
Borrowed_To_Date: The date on which that book was supposed to be returned back
or should be renewed.
Actual_Return_date: The date on which the borrower returned the book to the library.
staff_Details:
This table contains the details of the staff in the Library. Each Staff member will be
given a unique User ID which serves as a Primary Key.
Columns
User_ID: The unique ID given to each staff member present in the Library.
Designation: The role of the staff member in the library such as librarian, assistant, etc.
Student_Details:
This table contains the details of all the students they are eligible for availing Library
facilities. Each student will be provided with a unique Student ID and Borrower ID. The
student ID will be Primary Key, whereas Borrower_ID and Phone_no will be Unique.
Columns:
Shelf_Details:
This table contain the position of the book…That means which floor and shelf the book
is situated.
Column:
Describe binding_details
Checking Relationship:
1. selectb.Book_Title, e.binding_name
2. fromBook_Detailsb, Binding_Details e
3. whereb.binding_id = e.binding_id;
Checking Relationship:
1. selectb.Book_Title,e.Category_Name
2. fromBook_Detailsb,Category_Details e
3. whereb.binding_id = e.Category_id;
Checking Relationship:
1. selectBorrower_Details.Borrower_id,Book_Details.Book_title
2. fromBorrower_Details,Book_Details
3. whereBorrower_Details.book_id=Book_Details.ISBN_Code
1. select*from Shelf_Details;