Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assuming a library database schema with the following tables and attributes: Book (BookID, Title, AuthorID, PublisherID, Rating, Price) Author (AuthorID, FirstName, LastName) Publisher (PublisherID, Name)

Assuming a library database schema with the following tables and attributes:

Book (BookID, Title, AuthorID, PublisherID, Rating, Price)

Author (AuthorID, FirstName, LastName)

Publisher (PublisherID, Name)

Borrower (BorrowerID, FirstName, LastName)

  1. Write a SQL query to retrieve the names of all authors who have written a book published by "Penguin Books".
  2. Write a SQL query to retrieve the total number of books borrowed by each borrower.
  3. Write a SQL query to retrieve the names of all publishers who have published at least one book with a rating of 4 stars or higher.
  4. Write a SQL query to calculate the average price of books.
  5. Write a SOL query to find the maximum price of books.
PLEASE ANSWER CORRECTLY OR I WILL PUT
image text in transcribed
Assuming a library database schema with the following tables and attributes: Book (BookID, Title, AuthorID, PublisherID, Rating, Price) Author (AuthorID, FirstName, LastName) Publisher (PublisherID, Name) Borrower (BorrowerID, FirstName, LastName) 1- Write a SQL query to retrieve the names of all authors who have written a book published by "Penguin Books". 2- Write a SQL query to retrieve the total number of books borrowed by each borrower. 3- Write a SQL query to retrieve the names of all publishers who have published at least one book with a rating of 4 stars or higher. 4- Write a SQL query to calculate the average price of books. 5- Write a SQL query to find the maximum price of books

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

Step: 3

blur-text-image

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

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions

Question

Should business writers avoid contractions? Why?

Answered: 1 week ago