Al ejecutar
SELECT ENVASE, SABOR,
CASE
WHEN PRECIO_DE_LISTA >= 12 THEN "COSTOSO"
WHEN PRECIO_DE_LISTA >= 5 AND PRECIO_DE_LISTA <=12 THEN "ASEQUIBLE"
ELSE "BARATO"
END AS PRECIO, MIN(PRECIO_DE_LISTA) AS PRECIO_MINIMO
FROM tabla_de_productos
WHERE tamano = "700 ml"
GROUP BY ENVASE,
CASE
WHEN PRECIO_DE_LISTA >= 12 THEN "COSTOSO"
WHEN PRECIO_DE_LISTA >= 5 AND PRECIO_DE_LISTA <=12 THEN "ASEQUIBLE"
ELSE "BARATO"
END
ORDER BY ENVASE;
me aparece:
Error Code: 1055. Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'jugos_ventas.tabla_de_productos.SABOR' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by 0.000 sec
nota: Revise con el video y está igual al del profesor, pero no ejecuta.