What is the sql command to list the total sales by customer


Assignment

Description

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

I. 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?

II. 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?

III. 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?

IV. 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?

V. 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?

VI. 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?

VII. 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?

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

Format your assignment according to the following formatting requirements:

i) The answer should be typed, using Times New Roman font (size 12), double spaced, with one-inch margins on all sides.

ii) The response also includes a cover page containing the title of the assignment, the student's name, the course title, and the date. The cover page is not included in the required page length.

iii) Also include a reference page. The Citations and references must follow APA format. The reference page is not included in the required page length.

Attachment:- Sale-Co-DW.rar

Solution Preview :

Prepared by a verified Expert
PL-SQL Programming: What is the sql command to list the total sales by customer
Reference No:- TGS03025547

Now Priced at $60 (50% Discount)

Recommended (95%)

Rated (4.7/5)