Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 . Design the ERD for Library Management System. Make an engaging ERD that links entities, attributes, and relationships. Entities and Attributes: Identify entities: Book,
Design the ERD for Library Management System. Make an engaging ERD that links entities, attributes, and relationships.
Entities and Attributes:
Identify entities: Book, Librarian, User.
Attributes for Librarian: FirstName, LibrarianID PK LastName
Attributes for User: MaxDaysAllowed, UserType StudentFaculty UserID PK MaxBooksAllowed.
Attributes for Book: Title, BookID PK StorageLocation, ISBN, UnitNumber, Author, RowNumber, Illustrator.
Relationships:
Define relationships: Book has CheckOutRecord :M Librarian facilitates CheckOut :M and User checks out Book M:M
Add foreign keys: UserID FK in CheckOut, BookID FK in CheckOutRecord, and LibrarianID FK in CheckOut.
Additional Entities:
Create entities for CheckOutRecord and CheckOut.
Attributes for CheckOut: FineAmount, CheckOutID PK ActualReturnDate, CheckOutDate, ReturnDate.
Attributes for CheckOutRecord: Duration, CheckOutRecordID PK
Map ERD into the Relational Model
Librarian Table:
Librarian FirstName LibrarianID
PK LastName
User Table:
User MaxDaysAllowed UserType, UserID PK MaxBooksAllowed
Book Table:
BookTitle BookID PK StorageLocation, ISBN,
UnitNumber, Author, RowNumber, Illustrator
CheckOut Table:
CheckOut LibrarianID FK
CheckOutID PK CheckOutDate,
UserID FK ReturnDate,
FineAmount ActualReturnDate
CheckOutRecord Table:
CheckOutRecordCheckOutD FK
BookID FK CheckOutRecordID
PKDuration
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started