Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the LIBRARY relational database schema shown below which is used to keep track of books, borrowers, and book loans. Referential integrity constraints are shown

Consider the LIBRARY relational database 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 expressions for the following queries:

1. How many copies of the book titled The Lost Tribe are owned by the library branch whose name is Sharpstown?

2. How many copies of the book titled The Lost Tribe are owned by each library branch?

3. Retrieve the names of all borrowers who do not have any books checked out.

4. For each book that is loaned out from the Sharpstown branch and whose Due_date is today, retrieve the book title, the borrowers name, and the borrowers address.

5. 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Microsoft SQL Server 2012 Programming

Authors: Paul Atkinson, Robert Vieira

1st Edition

1118102282, 9781118102282

Students also viewed these Databases questions

Question

What is the purpose of an assessment center?

Answered: 1 week ago

Question

=+What additional competencies are needed for this organization?

Answered: 1 week ago