-----Original Message-----
From: Swapna_Chinnagangannagari [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 12:26 PM
To: Multiple recipients of list ORACLE-L
Subject: RE: simple sql problemHello Raja,
You can try this way
1)select x+y sum1 from blah
2)col sum1 format 09.99
3)select x+y sum1 from blah
rgds
swapna
-----Original Message-----
From: Viraj Luthra [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 12:31 PM
To: Multiple recipients of list ORACLE-L
Subject: RE: simple sql problemNo, I mean, if (x+y) < 1, that is a value of .92 which it prints out, but I want it to print out like, 0.92, that is a "0." is concatenateed to the result.
therefore, when i have,
select x+y from blah
I should get 90 when the value is really 90
and I should get 0.92 when the value is really .92Any comments
rgds,
raja
--On Mon, 30 Jul 2001 22:00:23
Amar Kumar Padhi wrote:
>I believe what you meant is if it is less than one then the output should be
>1.
>if so:
>
>select (case when x + y > 1 then x + Y
> else 1
> end) from blah;
>
>
>-----Original Message-----
>Sent: Tuesday, July 31, 2001 9:10 AM
>To: Multiple recipients of list ORACLE-L
>
>
>Hello all,
>
>If I have a situation, where I have the following:-
>
>select x+y from blah
>
>and if x+y > 1, eg 5 then the output can be 5,
>but if x+y < 1, eg, .92, then I need the output as 0.92.
>
>How do I do this?
>
>rgds,
>
>raja
>
>
>Get 250 color business cards for FREE!
>http://businesscards.lycos.com/vp/fastpath/
>--
>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>--
>Author: Viraj Luthra
> INET: [EMAIL PROTECTED]
>
>Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
>San Diego, California -- Public Internet access / Mailing Lists
>--------------------------------------------------------------------
>To REMOVE yourself from this mailing list, send an E-Mail message
>to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
>the message BODY, include a line containing: UNSUB ORACLE-L
>(or the name of mailing list you want to be removed from). You may
>also send the HELP command for other information (like subscribing).
>
Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Viraj Luthra
INET: [EMAIL PROTECTED]Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Title: RE: simple sql problem
or,
set
numformat '999999990.99' (in sql*plus)
- simple sql problem Viraj Luthra
- RE: simple sql problem Amar Kumar Padhi
- RE: simple sql problem Viraj Luthra
- RE: simple sql problem Swapna_Chinnagangannagari
- RE: simple sql problem Amar Kumar Padhi
- RE: simple sql problem Pulikkol Kumar
- Re: simple sql problem Jon Walthour
- RE: simple sql problem Ramon Estevez
- RE: simple sql problem Jacques Kilchoer
- RE: simple sql problem Swapna_Chinnagangannagari
- RE: simple sql problem Pulikkol Kumar
- simple sql problem Viraj Luthra
- Re: simple sql problem hemantchitale
- RE: simple sql problem Ross Collado
- Re: simple sql problem Jared Still