Home » Developer & Programmer » Reports & Discoverer » Compute
Compute [message #126233] Fri, 01 July 2005 15:03 Go to next message
SRB22
Messages: 1
Registered: June 2005
Location: CA
Junior Member

I am new to SQLPLUS and am trying to follow the User's Guide and Reference to do a simple sum on a column that is a number data type, when I run this sample:

Compute sum of WON on WON

 SELECT TEAM, WON, LOST, TIED, CANCELLED, RAINOUT, M_UP FROM hockey
 ORDER BY TEAM;
 I get this:
Fri Jul 01
                                   Professional Hockey Teams

Team        WON Lost TIED CANCELLED Rain-out Date
----------- --- ---- ---- --------- -------- ---------
BLUES        56    7    3         2        1 05-JUN-73
CANADIENS    44    5    0         1        2 22-OCT-73
CANUCKS      43    2    5         7        1 22-OCT-73
ISLANDERS    54    6    2         7        1 24-NOV-73
MAPLE LEAFS  34    8    3         5        2 20-APR-73
            ---
            ###


My skills aren't too good yet. Can someone point me in the right direction to get a total for WON?

Thanks,
Re: Compute [message #126302 is a reply to message #126233] Sun, 03 July 2005 02:46 Go to previous message
Frank Naude
Messages: 4580
Registered: April 1998
Senior Member
Your "WON" column is to small. Execute the following before the query.

COLUMN won FORMAT 999


Best regards.

Frank
Previous Topic: Very Urgent :Report DIsplay
Next Topic: duplicate records in reports
Goto Forum:
  


Current Time: Mon Nov 04 15:18:42 CST 2024