Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The schema for the LibraryDB database is given below. borrow ( transactionID , personID * , borrowdate, duedate, returndate ) author ( authorID , firstname,
The schema for the LibraryDB database is given below.
borrowtransactionID personID borrowdate, duedate, returndate
authorauthorID firstname, middlename, lastname
bookcopybookID bookdescID
bookbookdescID title, subtitle, edition, voltitle, volnumber, language, place, year, isbn, dewey, subjectID
borrowcopytransactionID bookID
personpersonID firstname, middlename, lastname, address, city, zipcode, phonenumber,
emailaddress, classification, studentno, idcardno
publisherpublisherID publisherfullname
writtenbybookdescID authorID role
publishedbybookdescID publisherID role
subjectsubjectID subjecttype
The primary keys are underlined. The foreign keys are denoted by asterisks
Description of the schema
person keeps track of the people who borrow books from the library personal and contact details
author keeps track of personal information about authors.
publisher keeps track of the publisher information.
subject this relation keeps information about the subjects on which the library collection have books.
book contains information about the books that are available in the library. Every book can have one
or more physical copies in the collection. Each book can have one or more authors and it is published
by one or more publishers.
bookcopy keeps track of the physical copies of the books in the library collection.
borrow keeps track of the checkins and checkouts of the books. Every transaction is done by one
person, however may involve with one or more book copies. If there is no return date, it means the
book has been checked out but not returned.
Page of
writtenby associates books with authors. A book may be associated with several authors and an
author may be associated with several books. There is also an attribute 'role' that specifies the role of
the author for the book author editor translator etc
publishedby associates publishers with books. There is an attribute 'role' here too which takes
values publishereditor etc.
borrowcopy associates physical copies of books with a transaction. Members are allowed to
borrow several books in a single transaction.
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