Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Relational Database Schema for a Library Database: BOOK(BKID, BK_TITLE, BK_LIST_

ID: 3798622 • Letter: R

Question

Relational Database Schema for a Library Database: BOOK(BKID, BK_TITLE, BK_LIST_PRICE, PBID) PUBLISHER(PBID, PB_NAME, PB_STREET, PB_ZIPCODE, PB_PHONE) AUTHOR(AUID, AU_NAME, AU_DOB) LIBRARY_BRANCH(LBID, LB_NAME, LB_STREET, LB_ZIPCODE) BORROWER(CRID, CR_NAME, CR_DOB, CR_STREET, CR_ZIPCODE) ZIPCODE(ZIPCODE, CITY, STATE) BOOK_COPIES(BKID, LBID, NO_OF_COPIES) BOOK_AUTHORS(BKID, AUID) BOOK_LOANS(BK_ID, LB_ID. CR_ID, DATE_OUT, DUE_DATE) For each query below, write the Relational Algebra statement(s): List all the attributes for each Author born after January 18, 1976 List the Name and Date-of-Birth for each Author. List the Title, List Price and Publisher's Name for each Book. List the ID & Name of each Publisher who has published at least one Book whose List Price was more than $2 OO.OO List the ID & Name of each Publisher who has never published a Book whose List Price was more than $200.00 List the ID & Name of each Publisher who only publishes Books whose List Price is more than $200.00 List the Title, List Price and Publisher's Name for those Books whose List Price is less than $50.00 and the Publisher's Zipcode is 23284 8. List the Title, List Price and Publisher's Name for those Books whose List Price is less than $50.00 or the Publisher's Zipcode is 23284 List the Names and Date-of-Birth of those Borrowers who have borrowed at least one Book written by the Author whose Name is Marcus Garvey.

Explanation / Answer

Ans. 1.

Select AUID, AU_NAME, AU_DOB from AUTHOR where AU_DOB > 18-01-1976

Ans.2.

Select AU_NAME, AU_DOB from AUTHOR