#814

Add a «total for the quarter» column to the pivot

Same «product × month» report, but tack on a total column at the end of each row — that product's total sales across all three months. The output should be a single result set: product, three monthly sums (January, February, March 2024), and a final overall sum for the quarter. Sort by product.

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.

totalproductm_2024_01m_2024_02m_2024_03
370.00A100.00150.00120.00
280.00B80.0090.00110.00
215.00C60.0070.0085.00

Your query result will appear here