How to order by SUM() DESC when using WITH ROLLUP?
I want to use SELECT WITH ROLLUP
in MariaDB to get a summary row in the result set, but also order the remaining rows by SUM() DESC
. How to best achieve this?
I want to use SELECT WITH ROLLUP
in MariaDB to get a summary row in the result set, but also order the remaining rows by SUM() DESC
. How to best achieve this?