DATABASE: library (library_name [pk], City, Phone, manager_SSN[pk, fk]) book (book_name [pk], Genre, Country) borrower (SSN[pk], Name, Birthyear, Fav_book [ fk], Gender) likes (SSN[pk, fk], book [pk, fk]) bookLoans (library [fk], books [fk]) manager (SSN[pk], Name, City, Address, Phone) Provide OPTIMIZED relational algebra for the following queries: 1 a) List name, gender, and age of all borrowers. b) List all male borrowers older than 65 years of age. c) List the book names loaned by at least one library and liked by at least one borrower. d) List the name and ssn of all borrowers who like their favorite book

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter3: Data Representation
Section: Chapter Questions
Problem 3RP
icon
Related questions
Question
DATABASE:
library (library_name [pk], City, Phone, manager_SSN[pk, fk])
book (book_name [pk], Genre, Country)
borrower (SSN[pk], Name, Birthyear, Fav book [fk], Gender)
likes (SSN[pk, fk], book [pk, fk])
bookLoans (library [fk], books [fk])
manager (SSN[pk], Name, City, Address, Phone)
Provide OPTIMIZED relational algebra for the following queries:
1 a) List name, gender, and age of all borrowers.
b) List all male borrowers older than 65 years of age.
c) List the book names loaned by at least one library and liked by at least one borrower.
d) List the name and ssn of all borrowers who like their favorite book
Transcribed Image Text:DATABASE: library (library_name [pk], City, Phone, manager_SSN[pk, fk]) book (book_name [pk], Genre, Country) borrower (SSN[pk], Name, Birthyear, Fav book [fk], Gender) likes (SSN[pk, fk], book [pk, fk]) bookLoans (library [fk], books [fk]) manager (SSN[pk], Name, City, Address, Phone) Provide OPTIMIZED relational algebra for the following queries: 1 a) List name, gender, and age of all borrowers. b) List all male borrowers older than 65 years of age. c) List the book names loaned by at least one library and liked by at least one borrower. d) List the name and ssn of all borrowers who like their favorite book
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Fundamentals of Datawarehouse
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Enhanced Discovering Computers 2017 (Shelly Cashm…
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning