Page 1 of 1

Lower case verification in string

Posted: Thu Apr 30, 2009 3:35 am
by snt_ds
Hello All,

My input data coming like:

AA BB
USD 100
USd 101.23
GBP 200
GBp 203.45

Target column is:

CC

The requirement is, If the last charecter in AA column is lower case(EX: 'd' or 'p') then I need to divide the column(BB) with 100 and load into target column i.e. CC

Could you please let me know how to to acheive this.

Thanks,

Posted: Thu Apr 30, 2009 3:59 am
by Sainath.Srinivasan
UpCase is your lead.

Posted: Thu Apr 30, 2009 4:15 am
by snt_ds
Yes sainath,

I have acheived this by following logic:

If Right(AA,1) = UpCase(Right(AA,1)) then CC else CC /100


Thanks,