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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: sql column formatting

RE: sql column formatting

From: Mercadante, Thomas F \(LABOR\) <Thomas.Mercadante_at_labor.state.ny.us>
Date: Wed, 19 Jul 2006 09:19:25 -0400
Message-ID: <ABB9D76E187C5146AB5683F5A07336FF681429@EXCNYSM0A1AJ.nysemail.nyenet>


Raj,

Can you show us your sql statement? Also, why not use a column alias in your select and use that column alias in your format statement?  

column patient_name format a37 heading 'Patient_Name'

Select TRIM(replace(PATIENT_NAME,'-',',')) patient_name

From ......  

Tom  



This transmission may contain confidential, proprietary, or privileged information which is intended solely for use by the individual or entity to whom it is addressed. If you are not the intended recipient, you are hereby notified that any disclosure, dissemination, copying or distribution of this transmission or its attachments is strictly prohibited. In addition, unauthorized access to this transmission may violate federal or State law, including the Electronic Communications Privacy Act of 1985. If you have received this transmission in error, please notify the sender immediately by return e-mail and delete the transmission and its attachments.

From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of raja rao Sent: Wednesday, July 19, 2006 9:11 AM
To: oracle-l_at_freelists.org
Subject: sql column formatting  

Hi All,  

Can some one help me in setting the column format.  

I have the 2 below commands:  

column TRIM(replace(PATIENT_NAME,'-',',')) format a37 heading 'Patient_Name'

column concat(to_char(ADMIT_DT,'MMDDYYYY'),ATTENDING_PHYSICIAN) format a47 heading 'Date_ofReferring_Phys_Code'  

the format is working fine and i'm getting in size a37 and a47 till the weekend.  

last week we did online partitioning of the table. But that was not in weekend. that was in mid of the week.  

after the partitioning also we got 2 successful reports. (with correct format)  

later, the format is not working for us. when we try to query also,

it is showing a65 output. the scripts are not changed.  

i am confused why oracle behaves like this. (this is a 9i database on solaris)  

can someone throw some light on this.  

Thanks in advance,

Raj



Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
--
http://www.freelists.org/webpage/oracle-l
Received on Wed Jul 19 2006 - 08:19:25 CDT

Original text of this message

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