Create SOL statements for the following scenarios. Your response should include SOL statement, output and any other assunptions you have made to arrive at the solution. Please provide a single SQL query for each problem.

a. For each book in the catalog, display its title, publisher, ISBN, release date, number of pages, and whether it's carried in any library ("Yes" or "No"). Sort results by title. Make sure there is no duplicate information.

b. For a book with ISBN 9780756404079, display it's title, publisher, ISBN, which library (not branch) has it, and total number of copies each library has. Do not show libraries that don't carry it. Sort results by number of copies in decending order.

c. For each DVD in the catalog, display it's title, length, release_date, and how many times it has been checked out by all customers across all libraries. Include those that have not been checked out yet (display as O). Sort results by title.

d. Display those customers who have checked out the same catalog item more than once. Show customer name, and for each catalog item show title, type, number of check out times, first check out date and last check out date for the item. Sort results by customer first/last name and catalog item title.

e. Show all customers who have checked more books than DVDs, Display customer name, total book checkouts and total DVD checkouts. Sort results by customer first name and last name.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.