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
 appending two rows

Author  Topic 

diyagan
Starting Member

22 Posts

Posted - 2007-10-04 : 06:20:03
Hi,
can any one say is it possible to add two rows of a table and store it in a single row in Sql server.assume the row consist of only one field

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-10-04 : 06:23:02
Add in what sense? Post some sample data and expected output.

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-10-04 : 06:25:48
Concatenation is the answer.



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

diyagan
Starting Member

22 Posts

Posted - 2007-10-04 : 06:27:02
assume
in first row the data is SQl
in second row the data is server
the output should be SQlserver
is it possible?
Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-10-04 : 06:29:56
See this: http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=53293

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-10-04 : 06:36:05
And if you are using SQL Server 2005,
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=81254



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-10-04 : 06:40:31
And if you use front end application to show concatenated data, do concatenation there

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

diyagan
Starting Member

22 Posts

Posted - 2007-10-04 : 07:25:12
thank u its working fine...
Go to Top of Page
   

- Advertisement -