Código SQL [-] SELECT Condicion, case Condicion when 'Malo' then 1 when 'Regular' then 2 when 'Bueno' then 3 end Ordenador, COUNT(Condicion) Total FROM articulos GROUP BY 1, 2 ORDER BY 2;
SELECT Condicion, case Condicion when 'Malo' then 1 when 'Regular' then 2 when 'Bueno' then 3 end Ordenador, COUNT(Condicion) Total FROM articulos GROUP BY 1, 2 ORDER BY 2;