Order by Problem in Rollup
757161Mar 2 2010 — edited Mar 5 2010Hi
I have sorting problem, when i use rollup function to calculate sub total .
select region,country,port_id,sum(quantity) from Port_Dtl
group by rollup(region,country,port_id)
In the above query, i want to sort the result by Port_id ascending.
Any idea?