Documente Academic
Documente Profesional
Documente Cultură
DATABASE SYSTEMS
Submitted by
Faculty K.Chakitha-150030458
Bhupesh Deka S.V.Rohith-150031000
section-10, batch-24
CERTIFICATE
Faculty In charge
Bhupesh Deka
ACKNOWLEDGEMENTS
Place: KLU
Date: 11/04/2017
TABLE OF CONTENTS
Content Pg. No
1 Introduction 1
2 Data types 2
3 Data Requirements 3
Entities
Attributes
Relationships - cardinality
4 Entity Relationship Diagram 5
5 Schema Diagram 6
7 Test-case Queries
8 Conclusion
9 References
1. INTRODUCTION
Library Management System allows the user to store the book details and the
customer details. The system is strong enough to withstand regressive yearly
operations under conditions where the database is maintained and cleared over a
certain time of span. The implementation of the system in the organization will
considerably reduce data entry, time and also provide readily calculated reports.
OBJECTIVE: - It keeps track of all the information about the books in the
library, their cost, status and total number of books available in the Library. The
user will find it easy in this automated system rather than using the manual
writing system. The system contains a database where all the information will
be stored safely.
2. Data types and its description
Entities
BRANCH
EMPLOYEE
CUSTOMER
ISSUE STATUS
RETURN STATUS
BOOKS
Attributes
BRANCH
Manager_id
Branch_id
Address
Contact_no
Branch_h_no
Street
City
State
Zipcode
CUSTOMER
Customer_id
Books_issued
Name
Address
Registration_date
ISSUE STATUS
Issue_book_name
Issue_id
Issue_date
ISBN
Customer_id
RETURN STATUS
Return_id
Return_date
Customer_id
Return_book_name
ISBN
BOOKS
ISBN
Title
Category
Rental_price
Author
Publisher
Status
RELATIONSHIPS - CARDINALITY
Database changed
ERROR 1452 (23000): Cannot add or update a child row: a foreign key constraint
fails (`libproject`.`return_status`, CONSTRAINT `return_status_ibfk_2`
FOREIGN KEY (`return_cust`) REFERENCES `issue_status` (`issued_cust`))
1. Display the customer name who took the book of type comedy.
Mysql>select customer_name from customer where
book_type=’comedy’;
Mysql>describe customer;
8. CONCLUSION
• Though SQL doesn’t have the GUI interface like Microsoft access is
having and they all manage the database comfortable.
• This project shows how to create tables in SQL and how to create simple
data manipulation language and data definition language with how to
execute them.
• It also shows how relationships are established with the concepts of
primary and foreign key within a table.
• Lastly, the project shows how queries are created in SQL server, queries
like the create command, view, update, alter etc.
9. REFERENCES
http://people.cs.pitt.edu/~chang/156/03ERmodel.html
http://www.academia.edu/13780884/Database_system_for_library_man
agement_system
https://lbsitbytes2010.wordpress.com/2013/09/21/er-diagram-of-
library-management-rno15s5cs2/
https://www.slideshare.net/fiu025/library-management-
32343393?next_slideshow=1
http://www.c-sharpcorner.com/UploadFile/ea3ed6/database-design-for-
library-management-system/
http://stackoverflow.com/questions/17641134/what-is-different-
between-er-diagram-and-database-schema