Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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. 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? b. How many copies of the book titled The Lost Tribe are owned by each library branch? (, you should output the library branch name along with the number-of-copies information)

c. Retrieve the name of all library branches that have every book authored (or coauthored) by Jim Butcher.

image text in transcribed

BOOK Book id Title Publisher_ name BOOK AUTHORS Book _id Author_name PUBLISHER Name Address Phone BOOK COPIES Book id Branch idNo of copies BOOK LOANS Book id Branch id Card no Date out| Due_date LIBRARY BRANCH Branch_id Branch name Address BORROWER Card no Name Address Phone

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

More Books

Students also viewed these Databases questions

Question

Compose a goodwill message.

Answered: 1 week ago

Question

List the advantages and disadvantages of the pay programs. page 505

Answered: 1 week ago