ROLLUP
ROLLUP (a, b) adds subtotal rows for a, and a grand total, on top of the (a, b) groups. A NULL in a grouping column marks a subtotal row.
task
Revenue by category and by product with category subtotals and a grand total.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
ROLLUP (a, b) adds subtotal rows for a, and a grand total, on top of the (a, b) groups. A NULL in a grouping column marks a subtotal row.
Revenue by category and by product with category subtotals and a grand total.