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? Figure P13.8 shows the result of the query.

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter10: Application Development
Section: Chapter Questions
Problem 9VE
icon
Related questions
Question

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? Figure P13.8 shows the result of the query.

Tм MONTH
P_CATEGORY
TOTSALES
CAT1
174.83
CAT2
446.81
CAT3
537.54
9
CAT4
80.67
9
NULL
1239,85
10
CAT1
124.89
10
CAT2
366.91
10
CAT3
459.64
10
CAT4
60.77
10
NULL
1012.21
NULL
NULL
2252.06
Transcribed Image Text:Tм MONTH P_CATEGORY TOTSALES CAT1 174.83 CAT2 446.81 CAT3 537.54 9 CAT4 80.67 9 NULL 1239,85 10 CAT1 124.89 10 CAT2 366.91 10 CAT3 459.64 10 CAT4 60.77 10 NULL 1012.21 NULL NULL 2252.06
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
SQL Query
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning