Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

On the Sales table the following SQL statement below is executed. SELECT SalesPersonID, SalesRegion, SUM ( SalesVolume ) AS 'Total Sales' from Sales GROUP BY

On the Sales table the following SQL statement below is executed.
SELECT SalesPersonID, SalesRegion, SUM(SalesVolume) AS 'Total Sales' from Sales GROUP BY CUBE(SalesPersonID,SalesRegion)
How many rows are there in the result of the query?
Question 5 options:
7
9
8
6\table[[SalesPersonID,SalesRegion,State,Month,SalesVolume],[S0001,West,Califomia,01- January,9400.00],[S0001,West,Oregon,01- January,12400.00],[S0001,East,New York,01- January,11900.00],[S0001,East,Maine,01- January,8950.00],[S0001,West,Califomia,02- February,15350.00],[S0001,West,Oregon,02- February,11750.00],[S0001,East,New York,02- February,13400.00],[S0001,East,Maine,02- February,15000.00],[S0001,West,Califomia,03- March,14200.00],[S0001,West,Oregon,03- March,12600.00],[S0001,East,New York,03- March,11720.00],[S0002,West,Califomia,01- January,13750.00],[S0002,West,Oregon,01- January,9820.00],[S0002,East,New York,01- January,12730.00],[S0002,West,Califomia,02- February,16200.00],[S0002,West,Oregon,02- February,15240.00],[S0002,East,New York,02- February,12900.00],[S0002,East,Maine,02- February,9870.00],[S0002,West,Califomia,03- March,13700.00],[S0002,West,Oregon,03- March,13450.00],[S0002,East,New York,03- March,14200.00],[S0002,East,Maine,03- March,10200.00]]
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions