Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the LIBRARY relational schema shown in the following Figure, which is used to keep track of books, borrowers, and book loans. Referential integrity constraints
Consider the LIBRARY relational schema shown in the following Figure, which is used to keep track of books, borrowers, and book loans. Referential integrity constraints are shown as directed arcs in the Figure. Optimize the following two relational expressions on the LIBRARY database: 1) How many copies of the book titled The Lost Tribe are owned by each library branch? IlBranch_id, No_of_copies (Title='The Lost Tribe' (BOOK BOOKCOPIES)) 2) How many copies of the book titled The Lost Tribe are owned by the library branch whose name is "Sharpstown"? IINo_of_copies (Title='The Lost Tribe' AND Branch_name='Sharpstown! (BOOKCOPIESA LIBRARY BRANCH > BOOK) ) BOOK Bookid Title Publisher_name BOOK_AUTHORS Book_id Author_name PUBLISHER Name Address Phone BOOK_COPIES Book_id Branch_id No_of_copies BOOK_LOANS Book_id Branch_id Card_noDate_out Due_date LIBRARY_BRANCH Branch_id Branch_name Address BORROWER Card_no Name Address Phone
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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