need answer for all 1-9 plz Relational Database Schema for a Library Database: B
ID: 3798783 • Letter: N
Question
need answer for all 1-9 plz
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 $200.00. 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 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
1.
SELECT AUID,AU_NAME,AU_DOB FROM
AUTHOR WHERE AU_DOB > DATE '10-01-1976'.
2.
SELECT AU_NAME,AU_DOB,AUID FROM AUTHOR
GROUP BY AUTHOR
3.
SELECT BK_TITLE,BK_LIST_PRICE, PB_NAME FROM BOOK A, PUBLISHER B
WHERE A.PBID = B.PBID
4.
SELECT PBID,PB_NAME,
FROM PUBLISHER A INNER JOIN BOOK B
ON A.PBID = B.PBID
WHERE BK_LIST_PRICE >'200.000'
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.