Código Error MySQL:
Ver original
Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
Código SQL:
Ver original
SELECT SUBSTRING(FECHA,6,2) MES,SUM(facturacion) FROM presupuesto WHERE SUBSTRING(Fecha,1,4) = '2009' AND producto IN ('16','17') GROUP BY SUBSTRING(fecha,6,2) ORDER BY SUBSTRING(fecha,6,2)
Alguno de ustedes tiene idea de que estoy haciendo mal??