Home Forums SQL Server 2005 T-SQL (SS2K5) String concatenation RE: String concatenation
durai nagarajan
SSCoach
Points: 15775
More actions
August 20, 2012 at 4:25 am
#1527494
if you want the result like this
TranIDCode
201205AMDDOH
201206IXJRMI
then the query should be
select TranID , OriginCode + DestinationCode 'Code' from #Test
if this is not as per your output post a detailed explaination.
RegardsDurai Nagarajan