Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question#2: - Consider the LIBRARY relational schema, which is used to keep track of books, borrowers, and book loans: - Write down relational Algebra expressions

Question#2: - Consider the LIBRARY relational schema, which is used to keep track of books, borrowers, and book loans:

image text in transcribed

- Write down relational Algebra expressions for the following queries on the LIBRARY database:

(a) Find all titles of books

(b) Find all title and name of publisher for all books.

(c) Retrieve all borrowers names and phones who live in UK, ABC Street

(d) Retrieve all authors' names of the book titled The Lost Tribe

(e) How many copies of the book titled The Lost Tribe are owned by the library branch whose name is "Sharpstown"?

(f) How many copies of the book titled The Lost Tribe are owned by each library branch?

(g) Retrieve the names of all borrowers who do not have any books checked out.

(h) For each library branch, retrieve the branch name and the total number of books loaned out from that branch.

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

Data Access Patterns Database Interactions In Object Oriented Applications

Authors: Clifton Nock

1st Edition

0321555627, 978-0321555625

Students also viewed these Databases questions

Question

Describe the new structures for the HRM function. page 676

Answered: 1 week ago