i need help with database problem

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

  1. 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?
  2. 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?
  3. 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?
  4. 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?
  5. 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?
  6. 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?
  7. 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?
  8. 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).

 

Save your time - order a paper!

Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlines

Order Paper Now
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code “Newclient” for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.

The post i need help with database problem appeared first on My Nursing Experts.

 

“Are you looking for this answer? We can Help click Order Now”