Consider the LIBRARY relational database schema description provided below which is used to keep track of books, borrowe

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Consider the LIBRARY relational database schema description provided below which is used to keep track of books, borrowe

Post by answerhappygod »

Consider The Library Relational Database Schema Description Provided Below Which Is Used To Keep Track Of Books Borrowe 1
Consider The Library Relational Database Schema Description Provided Below Which Is Used To Keep Track Of Books Borrowe 1 (93.77 KiB) Viewed 40 times
Consider the LIBRARY relational database schema description provided below which is used to keep track of books, borrowers, and book loans. The relations are: ● ● ● ● BOOK (BookID, Title, PublisherName) BOOK_AUTHORS (BookID, AuthorName) PUBLISHER (Name, Address, Phone) BOOK_COPIES (BookID, BranchID, NumberOfCopies) BOOK LOANS (BookID, BranchID, CardNumber, DateOut, DueDate) LIBRARY_BRANCH (BranchID, BranchName, Address) BORROWER (CardNumber, Name, Address, Phone)
● If a query is long, feel free to break it up into a series of queries with intermediate answers stored in temporary relations (e.g. "let temp ...”). You can use abbreviations for Relational Algebra symbols such as S for SELECTION, P for PROJECTION, * for NATURAL JOIN, - for SET DIFFERENCE Your queries must not be "state-dependent", that is, they should work without modification even if another instance of the database is given. (a) How many copies of the book titled "The Lost Tribe" are owned by the library branch whose name is "Sharpstown"? (b) How many copies of the book titled "The Lost Tribe" are owned by each library branch? (c) Retrieve the names of all borrowers who do not have any books checked out. (d) For each book that is loaned out from the Sharpstown branch and whose DueDate is prior to "September 1, 2018", retrieve the book title, the borrower's name, and the borrower's address. (e) For each book authored (or coauthored) by Stephen King, retrieve the title and the number of copies owned by the library branch whose name is "Central". (f) Retrieve all book titles that are available in "Sharpstown" branch but not in "Morristown" branch. (g) Retrieve book titles that are available in all library branches in the database.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply