Question
This Is based on Murach's MySQL 3rd edition with the my_guitar_shop databases I need help writing the SQL queries 1. Write a SELECT statement that
This Is based on Murach's MySQL 3rd edition with the my_guitar_shop databases
I need help writing the SQL queries
1. Write a SELECT statement that uses aggregate window functions to calculate the order total for each customer and the order total for each customer by date. Return these columns:
The customer_id column from the Orders table
The order_date column from the Orders table
The total amount for each order item in the Order_Items table
The sum of the order totals for each customer
The sum of the order totals for each customer by date (Hint: You can create a peer group to get these values)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started