Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> How can I get sum report as this one?
Hello!!
I want to get result on Oracle as this one:
book 75.00 pen 12.35 notebook 5.05 <total> 92.4
------------------
I know that i may write query as this:
SELECT name, price FROM tbprices
UNION
SELECT 'total', sum(price) FROM tbprices
but it's not good.. I have long query and this method makes long time
and do one thing two times..
Is there any short solution about that..?
best Regards...Thanks Received on Fri May 12 2006 - 02:32:44 CDT