Academic coaching, editing, and research guidance for university students.

$30.00 Due in 24 hour Technical work Homework Assignment 3

2 min read
  

Description
Using the data provided in the SaleCo_DW database, solve the following problems.

What is the SQL command to list the total sales by customer and by product, with subtotals by customer and a grand total for all product sales?

What is the SQL command to list the total sales by customer, month and product, with subtotals by customer and by month and a grand total for all product sales?

What is the SQL command to list the total sales by region and customer, with subtotals by region and a grand total for all sales?

What is the SQL command to list the total sales by month and product category, with subtotals by month and a grand total for all sales?

What is the SQL command to list the number of product sales (number of rows) and total sales by month, with subtotals by month and a grand total for all sales?

What is the SQL command to list the number of product sales (number of rows) and total sales by month and product category with subtotals by month and product category and a grand total for all sales?

What is the SQL command to list the number of product sales (number of rows) and total sales by month, product category and product, with subtotals by month and product category and a grand total for all sales?

Using the answer to Problem 6 as your base, what command would you need to generate the same output but with subtotals in all columns? (Hint: Use the CUBE command).

Academic integrity note

Use this educational resource to build your understanding. Follow your institution’s rules and cite sources appropriately.

Want feedback on your own work?

Request Academic Support

Leave a Reply

Your email address will not be published. Required fields are marked *