Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need SQL query for these problems. Thank you for your help. 1. Average time that a book is checked out and round by one

I need SQL query for these problems.

Thank you for your help.

image text in transcribed

1. Average time that a book is checked out and round by one decimal & maximum time a book has been checked out.

image text in transcribed

2. Displaying all books that are currently checked out

image text in transcribed

3. Display all books that are OVERDUE (Include Book Title, Patron L name, due date, and days overdue image text in transcribed

4. Display of authors that have written more than 2 books. (Include first name, last name, # of books written)

image text in transcribed

CHECKOUT PATRON PK Check Num PK Pat ID FK1 Book Num FK2 Pat _ID Check Out Date Check Due Date Check_ In_Date Pat FName Pat LName Pat_Type BOOK AUTHOR PK Book Num PK Au ID Book Title Book Year Book Cost Book Subject Au FName Au LName Au BirthYear FK1 Pat ID WRITES PK,FK1 Book Num PK,FK2 Au ID

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

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions