Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 concatenate value

Author  Topic 

stahorse
Yak Posting Veteran

86 Posts

Posted - 2012-08-31 : 03:03:04
I have this table

CSN NAME LOCATION TYPE
MO-550 IFA Comapny MO-450 SIPP
1-275 BGT Company NN-SP Company
1-2956 BLQ Company SSFT TRUST

How do i write a query that return a NAME concatenated with it's CSN

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2012-08-31 : 03:09:11
refer http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=81254


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-08-31 : 10:19:38
do you mean this?


SELECT CSN + ' ' + NAME AS ConcatValue,*
FROM table


------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -