all groups > sql server data warehouse > november 2005 >
You're in the

sql server data warehouse

group:

Crosstab?


Crosstab? Jon Derbyshire
11/3/2005 5:49:08 AM
sql server data warehouse: Hi,

I run the following query "SELECT * FROM tbl_A", and get the following
result set:

Surname Firstname
Smith John
Smith Richard
Smith Simon

What I want to see in my result set is:

Surname Firstname
Smith John, Richard, Simon

How do I achieve this?

Thanks

Re: Crosstab? Adam Machanic
11/5/2005 2:54:31 PM
Can you do it in the client? This kind of thing is extremely inefficient in
SQL Server.

If you must do it in SQL Server, refer to the following:

http://www.aspfaq.com/show.asp?id=2529


--
Adam Machanic
Pro SQL Server 2005, available now
www.apress.com/book/bookDisplay.html?bID=457
--


[quoted text, click to view]

Re: Crosstab? Jon Derbyshire
11/7/2005 5:55:04 AM
Thats brilliant - Thanks

[quoted text, click to view]
AddThis Social Bookmark Button