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

Assignment Help Basic Computer Science
Reference no: EM132413506

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?

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).

Attachment:- Chapter 13-SaleCo-DW.rar

Reference no: EM132413506

Questions Cloud

Describe one dimensional classifications of motor skills : Describe one dimensional and two dimensional classifications of motor skills (Cf. Gentile, 2000). What arguments would you give in favor (or against).
Multiplier method of valuation : Which of the following is a step in using the multiplier method of valuation?
Demonstrate your ability to evaluate evolution of language : This competency will allow you to demonstrate your ability to evaluate the evolution of language within online and digital forums due to advances and changes.
What is the cost of equity : Springvale Corp. has EBIT of $25 million, before tax cost of debt of 9%, an unlevered cost of equity of 12%, a tax rate of 35% and debt of $75 million.
What is the SQL command to list the total sales by customer : 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 defined as deviant in the physical world : This competency will allow you to demonstrate your understanding of deviance in the digital world and the changes to deviance that we see due to technological.
Determine x and y values that satisfy both equations : Write that system in the space below and solve that system to determine x and y values that satisfy both equations.
Pension liability should james report in its balance sheet : What pension liability should James report in its balance sheet for the year ended December 31, 2019?
Increase efficiency and improve break even position : What steps can a company in your chosen industry take to reduce costs and increase profits to increase efficiency and improve their break even position?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Analyze the association between fat content and calories

Analyze the association between fat content and calories using correlation and scatterplots.

  Various numbers of children age

The proportions of families with various numbers of children age 18 or under in a small town are given in the following table.

  Companies net cash flow at annual interest rate

Determine the annual worth over the years 1 through 5 of the companies net cash flow at annual interest rate of 10%.

  Flow chart or an algorithm

Show, using a flow chart or an algorithm, how you would solve the problem as described. Write a pseudocode program according to your flow chart or algorithm. Write a draft program in ARM assembly language to solve the problem as described

  Major it project and explain the importance

Identify the main steps or phases involved in a major IT project and explain the importance and value of each step.

  Database concepts of view-based access control

Describe the database concepts of View-based access control, Polyinstantiation, Data warehousing and data mining, and Online Transaction Processing (OLTP)?

  Should you sell the machine or keep it

Should you sell the machine or keep it? If you must commit to a posted price, what price maximizes profit?

  Remote access for small offices and teleworkers

Case Study 2: Cisco's Remote Access Go to Cisco's Website and read, "How Cisco IT Provides Remote Access for Small Offices and Teleworkers", located at http://bit.ly/MkvlbA. According to the study, an IDC forecast from December 2007, expected the glo..

  For my human performance improvement class

Modeling mastery performance and systematically deriving the enablers generates data for use in downstream improvement efforts, including additional analyses

  • create a network reference model diagram of the current

Create a network reference model diagram of the current network that describes the role of each layer for both OSI and TCP/IP that are used to transmit data between the devices and applications specifically in your retail store.

  Milligrams of a radioactive substance

A scientist begins with 100 milligrams of a radioactive substance that decays exponentially. After 31 hours, 50 mg of the substance remains. How many milligrams will remain after 51 hours? (Round your answer to two decimal places.)

  How could tcp and udp know the values in the ip header

When adding a per-segment checksum to a segment, TCP and UDP include some fields in the IP layer before the segment has been passed to its underlying layer, the IP layer. How could TCP and UDP know the values in the IP header?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd