I have the following SQL query to get grouped and ordered by months the sum of prices of three products, which makes no problem
SELECT name, SUM(precio) AS total, mes
FROM productos
GROUP BY mes
ORDER BY mes DESC;
The result I get is...
asked by
28.06.2018 / 02:49