Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume that the LIBRARY database with the schema below has been defined and populated with data.For that database write the SQL queries to accomplish the

Assume that the LIBRARY database with the schema below has been defined and populated with data.For that database write the SQL queries to accomplish the tasks listed below.

image text in transcribed

a. How many copies of the The Lost Tribe are owned by the Sharpstown library branch? b. How many copies of the The Lost Tribe are owned by each library branch? c. Retrieve the names of all borrowers who do not have any books checked out. d. For each library branchre,trieve the branch name and the total number of books loaned out from that branch. e. Retrieve the names, addresses, and the number of books checked out by each borrower who checkedout more than five books.

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

MFDBS 91 3rd Symposium On Mathematical Fundamentals Of Database And Knowledge Base Systems Rostock Germany May 6 9 1991

Authors: Bernhard Thalheim ,Janos Demetrovics ,Hans-Detlef Gerhardt

1991st Edition

3540540091, 978-3540540090

More Books

Students also viewed these Databases questions

Question

Discuss the techniques of job analysis.

Answered: 1 week ago

Question

How do we do subnetting in IPv6?Explain with a suitable example.

Answered: 1 week ago

Question

Explain the guideline for job description.

Answered: 1 week ago

Question

What is job description ? State the uses of job description.

Answered: 1 week ago

Question

What are the objectives of job evaluation ?

Answered: 1 week ago

Question

Acceptance of the key role of people in this process of adaptation.

Answered: 1 week ago

Question

preference for well defined job functions;

Answered: 1 week ago