Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
Posted: Fri Apr 17, 2009 12:29 pm Post subject:
NASCAR9,
Well RTRIM returns a varchar string so you see low values in them, but is your intention to trim the spaces and have the last and first names together?
Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
Posted: Fri Apr 17, 2009 1:16 pm Post subject:
NASCAR9,
You still did not answer my question as to if you need to concatenate last name and first name together. You need CHAR function on the string to have spaces instead of low-values. Anyway you can use one of the following depending on your need
Joined: 08 Oct 2004 Posts: 274 Topics: 52 Location: California
Posted: Fri Apr 17, 2009 1:33 pm Post subject:
kolusu, I'm sorry I thought I was clear when I said 'Fixed Length' but I can see where it was confusing. The columns are seperate like your second example.
And THANK YOU! You once again had the correct solution! You can see the colunm with the 'CHAR' function and the column without it.
Code:
JAMES ..BUDD.................
DCDCE4444444444444444444444444444444444400CECC00000000000000000
114520000000000000000000000000000000000004244400000000000000000
--------------------------------------------------------------
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum