#813

Flip the table: months as rows, products as columns

Same sales report, but in this projection it's more convenient to see months as rows and products as columns. For every month compute total sales separately for products A, B, and C. Show the month and three columns with the per-product sums. Sort by month.

Expected output sample

This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables.

abcmonth
100.0080.0060.002024-01
150.0090.0070.002024-02
120.00110.0085.002024-03

Your query result will appear here