SELECT category_id, SUM(price) as totalprice
FROM products
GROUP BY category_id WITH ROLLUP
Bekijk de pagina in de handleiding
SELECT category_id, SUM(price) as totalprice
FROM products
GROUP BY category_id WITH ROLLUP
Bekijk de pagina in de handleiding