Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose we have a database for a library system composed of the following relations; Library ( library# , library name, library address ) [ the

Suppose we have a database for a library system composed of the following relations;
Library (library#, library name, library address )[the key is (library#)]
Reader (reader#, reader name, reader type, reader address)[the key is reader#]
Document (document#, document title, document type, document descriptors)[the key is (doc- ument#)]
Copy (document# ,copy#, library#, copy location, copy status)[the key is (document#, copy#)], copy status can be availableor borrowed
Borrowing (reader#, document#, copy#, date borrowed, date returned)[the key is (document#, copy#, date borrowed)]
Express the following queries in Algebra (1 to 4), Calculus (2 and 3), SQL (all)
\pi \sigma \rho =!=-: \cap \cup
1. List all the document copies, along with the library that has them (document#, copy#, library#, copy location).
2. List the documents that the reader John has.
3. List the documents not available in any library.
4. List the documents available in every library.
5. Which document is the most borrowed?

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