NEED SQL CODE PLEASE Please use standard aggregate functions, please refrain from using CASE, WHEN, BETWEEN, THEN
Fantastic news! We've Found the answer you've been seeking!
Question:
NEED SQL CODE PLEASE
Please use standard aggregate functions, please refrain from using CASE, WHEN, BETWEEN, THEN clauses if possible
For each customer, product, month and state combination, compute (1) the customer's average sale of this product for the given month and state, (2) the customer's average sale for the given month and state, but for all other products (3) the customer's average sale for the given product and state, but for all other months and (4) the average sale of the product and the month but for all other states.
Please find attached a sample of the report should look like (SAMPLE ONLY, NOT CORRECT ANSWER)
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: