Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the LIBRARY relational database schema shown in Figure 8 . 1 4 , which is used to keep track of books, borrowers, and book

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 for the following queries:
How many copies of the book titled The Lost Tribe are owned by the library branch whose name is 'Sharpstown'?
How many copies of the book titled The Lost Tribe are owned by each library branch?
Retrieve the names of all borrowers who do not have any books checked out.
For each book that is loaned out from the Sharpstown branch and who's Due_date is today, retrieve the book title, the borrower's name, and the borrower's address.
Retrieve the names, addresses, and number of books checked out for all borrowers who have more than five books checked out.
Note: You can insert artificial data
Note: you should use linear algebra expressions only NO COMPUTERIZED SOL SYNTAX ARE ACCEPTABLE
Good luck! Please use relational Algebra to answer this question not SQL
image text in transcribed

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

Step: 3

blur-text-image

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

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions

Question

Ability to work comfortably in a team environment

Answered: 1 week ago

Question

Exposure to SQL desirable but not required

Answered: 1 week ago