Ver originalselect max(costo), codigo_plato from detalle_factura;
Ver originalSELECT detalle_pedido .codigo_plato, Sum(1) AS Expr1FROM detalle_pedidoGROUP BY detalle_pedido.codigo_plato;
Ver originalSELECT descripcion, count(detalle_factura.codigo_plato) as cantidad FROMdetalle_factura INNER JOIN plato USING(codigo_plato)GROUP BY detalle_factura.codigo_plato HAVING cantidad = (SELECT count(*) from detalle_factura GROUP BY codigo_plato ORDER BY count(*) DESC LIMIT 1);