Skip to content
Advertisement

sort the “rollup” in group by

I found that the “with rollup” option used with group by is very useful. But it does not behave with “order by” clause. Is there any way to order by the way I want as well as calculate the sub-totals?

Advertisement

Answer

try like using temporary table

This article may help you link text

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement