Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

image text in transcribed

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(BKIP, AUID) For each of the following, write the SQL query: List all the attributes for each Author born after January 18, 1976. List the Name and Date-of-Birth for each Author. List the Name and Date-of-Birth for each Author born after January 18, 1976. List the Title, List Price and Publisher's Name for each Book. List the Title, List Price and Publisher's Name for each Book whose List Price is more than $200.00. List the Title, List Price, Author's Name and Publisher's Name for each Book whose List Price is more than $200.00. List the ID, Name, City, State & Zipcode of each Publisher who has published at least one Book whose List Price was more than $200.00. List the number of books, and the minimum, average & maximum List Price for all books. List the Name, and average and maximum book List Price of each Publisher. List number of Publishers who have published at least one Book whose List Price is 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Machine Performance Modeling Methodologies And Evaluation Strategies Lncs 257

Authors: Francesca Cesarini ,Silvio Salza

1st Edition

3540179429, 978-3540179429

More Books

Students also viewed these Databases questions

Question

2. List the advantages of listening well

Answered: 1 week ago