The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
51 views

Consider the following relational schema for a library:

member(memb_no, name, dob)
books(isbn, title, authors, publisher)
borrowed(memb_no, isbn, date)


Write the following queries in relational algebra.
a. Find the names of members who have borrowed any book published
by “McGraw-Hill”.
b. Find the name of members who have borrowed all books published
by “McGraw-Hill”.
c. Find the name and membership number of members who have borrowed
more than five different books published by “McGraw-Hill”.
d. For each publisher, find the name and membership number of members
who have borrowed more than five books of that publisher.
e. Find the average number of books borrowed per member. Take into
account that if a member does not borrow any books, then that
member does not appear in the borrowed relation at all.

asked in Databases by Boss (10.2k points) | 51 views

Please log in or register to answer this question.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,814 questions
54,518 answers
188,351 comments
75,294 users