Given a database with tables for Orders , Customers , Products , and OrderDetails , write complex
Fantastic news! We've Found the answer you've been seeking!
Question:
- Given a database with tables for
Orders
,Customers
,Products
, andOrderDetails
, write complex SQL queries to:- Find the total revenue generated by each product category in the last quarter.
- List the top 5 customers by total purchase amount within the last year.
- Identify products that have never been ordered.
- Calculate the average time between order placement and shipment for orders shipped last month.
Related Book For
Fundamental Managerial Accounting Concepts
ISBN: 978-1259569197
8th edition
Authors: Thomas Edmonds, Christopher Edmonds, Bor Yi Tsay, Philip Olds
Posted Date: