decode function condition [message #20445] |
Fri, 24 May 2002 09:55 |
vimal
Messages: 46 Registered: February 2000
|
Member |
|
|
i want to run a sql statement using decode function suppose i have a column callled lv_bal from tbl
is it possible or not . if not then whats the alternate solution of it
select decode(lv_bal, <1 ,0,lv_bal) from tbl
pls inform me soon
|
|
|
|
|
Re: decode function condition [message #20454 is a reply to message #20452] |
Sat, 25 May 2002 08:36 |
vimal
Messages: 1 Registered: May 2002
|
Junior Member |
|
|
no its work some what like this
select lv_bal , decode(lv_bal,least(lv_bal,0),0,lv_bal) kk from tt_lvbalchk
but thanx for the reply i highly appreciate you coz u give me tha way to think in that way RAM
|
|
|
|