Question: Consider the following relational schema for a library: Tmember ( memb no , name, dob ) books ( isbn , title, authors, publisher ) borrowed
Consider the following relational schema for a library:
Tmembermemb no name, dob booksisbn title, authors, publisher borrowed memb no isbn, date
Write the following queries in relational algebra.
Find the names of members who have borrowed any book published by "McGrawHill".
FInd the name of members who have borrowed all books published by "McGrawHill".
Find the name and membership number of members who have borrowed more than five different books published by "McGrawHill"
For each publisher, find the name and membership number of members whe have borrowed more than five books of that publisher
Find the average number of books borrowed per member. Take into account that if an member does not borrow any books, then that member does not appear in the borrowed relation at all.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
