Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old August 26th, 2003, 10:35 AM
Friend of Wrox
Join Date: Jun 2003
Location: , , USA.
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
Default Concatination

I have a SQL Query that returns 2 records.
I would like to be able to have the SQL return 1 record with the previous records concatinated like this:
Does anybody know how to concatinate records on the fly with SQL?

  #2 (permalink)  
Old August 26th, 2003, 10:44 AM
Friend of Wrox
Join Date: Jun 2003
Location: Hudson, MA, USA.
Posts: 839
Thanks: 0
Thanked 1 Time in 1 Post

There is no good reliable way to do what you want in an SQL query.

Do it in your client.

You could also write a stored procedure which turns your query into a cursor and concatenates the rows together procedurally.

Jeff Mason
Custom Apps, Inc.

Similar Threads
Thread Thread Starter Forum Replies Last Post
PLS HELP ME ..STRING CONCATINATION rajukurian SQL Language 15 May 6th, 2005 05:47 PM
Concatination BSkelding MySQL 1 August 18th, 2004 09:47 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.