Question: Do Exercises 8 . 1 8 ( 1 . 3 . 5 . 7 . ) , in addition to relational expressions also write the
Do Exercises in addition to relational expressionsalso write the queries in SQL statements.
Exercise :
Consider the LIBRARY relational database schema shown in Figure which is used to keep track of books, borrowers, and book loans. Referential integrity constraints are shown as directed arcs in Figure as in the notation of Figure Write down relational expressions for the following queries:
a How many copies of the book titled The Lost Tribe are owned by the library branch whose name is Sharpstown
c Retrieve the names of all borrowers who do not have any books checked out.
e For each library branch, retrieve the branch name and the total number of books loaned out from that branch.
g 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.
BOOK
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
