onsider the LIBRARY relational database schema shown in Figure 8.14, which is used to keep track of books, borrowers, and book loans. Referential integrity constraints are shown as directed arcs in Figure 8.14, as in the notation of Figure 5.7. Write down relational expressions also write the queries in SQL statements. for the following queries Figure 8.18 will be attached 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.
FileStructure and
Consider the LIBRARY relational database schema shown in Figure 8.14, which is used to keep track of books, borrowers, and book loans. Referential integrity constraints are shown as directed arcs in Figure 8.14, as in the notation of Figure 5.7. Write down relational expressions also write the queries in SQL statements. for the following queries
Figure 8.18 will be attached
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
Book_id 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_no Date_out Due_date
LIBRARY_BRANCH
Branch_id Branch_name Address
BORROWER
rd_no Name Address Phone](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fe8ab9823-6b67-4761-afca-c710e57ac0e1%2F8015cafd-c0a5-445c-81a4-5c7e03e2b298%2Fnua21j_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
can you write them also in relational algrebra
Write them in relational expressions/algebra
![A Guide to SQL](https://www.bartleby.com/isbn_cover_images/9781111527273/9781111527273_smallCoverImage.gif)
![Oracle 12c: SQL](https://www.bartleby.com/isbn_cover_images/9781305251038/9781305251038_smallCoverImage.gif)
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
![A Guide to SQL](https://www.bartleby.com/isbn_cover_images/9781111527273/9781111527273_smallCoverImage.gif)
![Oracle 12c: SQL](https://www.bartleby.com/isbn_cover_images/9781305251038/9781305251038_smallCoverImage.gif)
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)