Question: Problem 1 : Consider the LIBRARY relational schema shown below, which is used to keep track of books, borrowers, and book loans. Referential integrity constraints
Problem : Consider the LIBRARY relational schema shown below, which is used to keep
track of books, borrowers, and book loans. Referential integrity constraints are shown as
directed arcs. Write down relational algebra expressions for the following queries on the
LIBRARY database:
BOOKLOANS
Figure
A relational database
schema for a LIBRARY
database.
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 For each library branch, retrieve the branch name and the total number of
books loaned out from that branch.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
