Home » SQL & PL/SQL » SQL & PL/SQL » SQLPlus Grand Totals
SQLPlus Grand Totals [message #41556] Fri, 10 January 2003 09:25 Go to next message
denny
Messages: 9
Registered: August 2002
Junior Member
Hi All

Don't know if this is possible in SQLPlus....

Can you ask SqlPlus to supply Grand Totals in
addition to sum totals:

We have a sql script that sums(pieces_mailed) by
campaign...however mgt would like to have a
grand total appear at the end of print out.
example:

Campaign sum(pieces_mailed)
2002 Appeal 10000
2002 Victory 5000
2003 Gift Card 2500
======
grand total 17500

I was wondering if this is possible in SQLPlus
so I wouldn't have to write a PLSQL procedure.

thanks in advance
Re: SQLPlus Grand Totals [message #41558 is a reply to message #41556] Fri, 10 January 2003 09:56 Go to previous messageGo to next message
Jon
Messages: 483
Registered: May 2001
Senior Member
Something along the lines of

COMPUTE SUM LABEL TOTAL OF PIECES_MAILED ON REPORT
Re: SQLPlus Grand Totals [message #41560 is a reply to message #41556] Fri, 10 January 2003 10:17 Go to previous message
denny
Messages: 9
Registered: August 2002
Junior Member
thanks Jon

IT WORKED!!!
Previous Topic: DECODE Formatting
Next Topic: DECODE Formatting
Goto Forum:
  


Current Time: Sun Jun 09 11:34:19 CDT 2024