Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Format of output in Sql*plus

Re: Format of output in Sql*plus

From: Brian Peasland <oracle_dba_at_nospam.peasland.net>
Date: Thu, 20 Apr 2006 13:31:55 GMT
Message-ID: <Iy0w9A.3po@igsrsparc2.er.usgs.gov>


> select id_XXXX, sum(aantal_YYYY)
> from ZZZ.ZZZZ
> group by id_XXXX

I just had to make sure that you weren't doing anything with the ID_XXXX column in your query.

Try the following (as suggested by gazzag) in SQL*Plus:

COLUMN id_xxxx FORMAT a10
SELECT id_XXXX, SUM(aantal_YYYY)
FROM ZZZ.ZZZZ
GROUP BY id_XXXX;

HTH,
Brian

-- 
===================================================================

Brian Peasland
oracle_dba_at_nospam.peasland.net
http://www.peasland.net

Remove the "nospam." from the email address to email me.


"I can give it to you cheap, quick, and good.
Now pick two out of the three" - Unknown
Received on Thu Apr 20 2006 - 08:31:55 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US