Page 1 of 1
COncatenation with blank values
Posted: Thu Mar 05, 2009 1:08 am
by dr.murthy
Hi all,
Could you please let me know how to concatenate
two values with blank space.
my reqirement is some thing like
concatenate lastname and fristname
with blank value
foe example
fristname-->GIRI
lastname--->KIRAN
reqired reult is GIRI KIRAN
So far i tried with
fristname : ' ' : lastname
but its giving result 0
Any suggestions???
Re: COncatenation with blank values
Posted: Thu Mar 05, 2009 1:21 am
by syeed
fristname-->GIRI
lastname--->KIRAN
fristname:' ':lastname
dont give any spaces in between and then try, it is working for me.
Re: COncatenation with blank values
Posted: Thu Mar 05, 2009 1:22 am
by syeed
fristname-->GIRI
lastname--->KIRAN
fristname:' ':lastname
dont give any spaces in between and then try, it is working for me.
Posted: Thu Mar 05, 2009 1:23 am
by nani0907
Hi,
Are fisrt name and secomd names two different columns.
Use below logic
fristname : Space(1) : lastname .
Let me know how it works.
Thanks
Sana
Posted: Thu Mar 05, 2009 3:27 am
by Sainath.Srinivasan
What is the datatype for target column ?
Posted: Thu Mar 05, 2009 5:15 am
by dr.murthy
nani0907 wrote:Hi,
Are fisrt name and secomd names two different columns.
Use below logic
fristname : Space(1) : lastname .
Let me know how it works.
Thanks
Sana
Hi ,
thanks for respond,
now its giving
fristnameSpace(1)astname.
not giving appropriate result
Posted: Thu Mar 05, 2009 5:31 am
by richdhan
Hi Murthy,
1. What is the stage you are using?
2. As Sainath asked what is the datatype of the target column
This is pretty straight forward. You just have to use a transformer and use the following derivation
LinkName.FirstName:" ":Linkname.LastName
HTH
--Rich
Posted: Thu Mar 05, 2009 6:34 am
by dr.murthy
Sainath.Srinivasan wrote:What is the datatype for target column ?
Data type is varchar2
Posted: Thu Mar 05, 2009 6:37 am
by chulett
Where are you doing this, what stage?
Posted: Thu Mar 05, 2009 6:56 am
by dr.murthy
hi,
now its working fine.
Thanks
Posted: Thu Mar 05, 2009 8:24 am
by rwierdsm
If one of the variables are null, the whole string will evaluate to null: i.e.
Firstname: ' ' : Lastname
If Firstname = 'Rob'
Lastname - 'Wierdsma'
result will be 'Rob Wierdsma'
If Firstname = null
Lastname = 'smith'
result will be null.