Learn about ER diagrams Design a normalized database schema for the following requirement. The requirement: A library wants to maintain the record of books, members, book issue, book return, and fines collected for late returns, in a database. The database can be loaded with book information. Students can register with the library to be a member. Books can be issued to students with a valid library membership. A student can keep an issued book with him/her for a maximum period of two weeks from the date of issue, beyond which a fine will be charged. Fine is calculated based on the delay in days of return. For 0-7 days: Rs 10, For 7 – 30 days: Rs 100, and for days above 30 days: Rs 10 will be charged per day. Sample Database Design BOOK (Book_Id, Title, Language_Id, MRP, Publisher_Id, Published_Date, Volume, Status) //Language_Id, Publisher_Id are FK (Foreign Key) AUTHOR(Author_Id, Name, Email, Phone_Number, Status) BOOK_AUTHOR(Book_Id, Author_Id) // many-to-many relationship, both col...
Comments
Post a Comment