This content has been marked as final.
Show 3 replies
-
1. Re: EDQ - Writing CASE or DECODE statement
Nick Gorman-Oracle May 3, 2013 9:30 AM (in response to Bala Govi)Hi Bala,
If I've interpreted the statement correctly then you're wanting to pad the digits to the left of a decimal point to four characters, so 12.345 becomes 0012.345.
The easiest way to achieve this is by using an Expression processor [see the online help for full syntax details]. Assuming the input attribute is called "col1" then the following expression should acheive the desired result:
substr("000" || col1, indexof(col1, ".") - 1)
regards,
Nick -
2. Re: EDQ - Writing CASE or DECODE statement
Bala Govi May 3, 2013 11:56 AM (in response to Nick Gorman-Oracle)Thanks!
Edited by: user4362313 on May 3, 2013 4:55 AM -
3. Re: EDQ - Writing CASE or DECODE statement
Nick Gorman-Oracle May 3, 2013 12:37 PM (in response to Bala Govi)Bala,
It does that already. You don't need to use a nested condition.
regards,
Nick