Book Loan System
Introduction
Library project system that offers many flexible and convenient features, allowing librarians
and library users to maximize time and efficiency. Library System gives the all detailed
information about students, staff and books. It will track on the how many books available in
library and books issued to the students. It shows popular book among the students. It will
provide book lost in library. It keeps the record of the suppliers and book binders. It generates
MIS reports for management. Our software is customizable for any library requirement.
User Requirement
ER Diagram with Tables and Relationship:
List of Tables
author table
book table
employee table
job Table
loan table
payment table
publisher table
student table
Award
The scripts for creating the tables using MySQL
Create table author
CREATE TABLE author
(
author_id INT PRIMARY KEY,
author_name VARCHAR(10),
);
Create table award
CREATE TABLE
(
date_bestseller VARCHAR(10) PRIMARY KEY,
award VARCHAR(10),
);
Create table book
CREATE TABLE author
(
isbn INT PRIMARY KEY,
balance VARCHAR(10),
category_code VARCHAR(10),
description VARCHAR(10),
title VARCHAR(10),
book_loan_no INT
author_id INT
isbn INT
date_bestseller VARCHAR(10),
award VARCHAR(10),
);
Create table employee
CREATE TABLE
(
employee_no INT PRIMARY KEY,
address VARCHAR(12),
date_of_employment VARCHAR(10)
employee_name VARCHAR(10)
job_title_code VARCHAR(10)
);
Create table job
CREATE TABLE
(
job_title_code VARCHAR(10) PRIMARY KEY,
job_grade VARCHAR(10),
pay_no INT
);
Create table loan
CREATE TABLE
(
book_loan_date VARCHAR(10) PRIMARY KEY,
book_loan_no INT
due_date VARCHAR(10)
return_date VARCHAR(10)
student_no INT
employee_no INT
isbn INT
);
Create table payment
CREATE TABLE
(
pay_no INT PRIMARY KEY,
max_pay INT
min_pay INT
);
Create table publisher
CREATE TABLE
(
publisher_id INT PRIMARY KEY,
publisher_name VARCHAR(10)
url VARCHAR(10)
);
Create table student
CREATE TABLE
(
student_no INT PRIMARY KEY,
student_name VARCHAR(10)
program_code INT
program_name VARCHAR(10)
email VARCHAR(10)
);
Form of Tables
Author
Award
Book
Employee
Job
Loan
Payment
Publisher
Student
Conclusion
Database management system helps to provide uniform access to data. Other than that DBMS also
helps to guarantee data integrity for the library and helps to set access policies for data. Protect against
system failure also one of the advantages of uses of DMBS. Rationalization of information processing
that user can concentrate on using information in library with DBMS.