I am back with another database project which was finalized 2 days back and this time I worked on Library Management using database.
Here’s a brief video on it:
So without much talking, let’s dive into the project.
To begin with, following are the tables which have been used in this project:
- BOOKS (Details about books in library):
2. USERS (Users includes both staff and students):
3. ISSUES (Records for books issued):
4. RETURNS (Records for books returned):
5. FINE (Records for fine against books):
Please find below the lucid chart for better explaination:
Following are two points which were set as standard while using the delay logic:
For staff members, the maximum delay in return can be of 5 days.
For students, the maximum delay in return can be of 4 days.
You can change this value by changing the value in below trigger (ISSUE_EXPIRY):
I have provided the SQL files for table creations – BOOKS, USERS, ISSUES, RETURNS and FINE which includes the sample data insertion queries as well.
Apart from this, I have also included the triggers file which will automate the value insertion of columns (marked with green arrow).
Zip file containing all the project files: Click here to download
Lucid (ERD): Click here to download
If you liked the stuff, please leave positive comment and in case you have any feedback, feel free to share that in comments!