Mysql
 sql >> Database >  >> RDS >> Mysql

ordina il rollup nel gruppo per

prova ad usare la tabella temporanea

 SELECT * 
 FROM 
 (
     SELECT country, sum(id) as cnt 
     FROM mygroup GROUP BY country WITH rollup
 ) t 
 ORDER BY cnt;

Questo articolo può aiutarti a testo di collegamento