for sql 2000 you need to use UDF methodCREATE FUNCTION ConcatValues(@TeamID int)RETURNS varchar(8000)ASBEGINDECLARE @RetVar varchar(8000)SELECT @RetVar=COALESCE(@RetVar,'') + ', ' + FirstName FROM TeamInfo WHERE TeamID = @TeamIDORDER BY TeamID,FirstNameSET @RetVar= substring(@RetVar,3,8000)RETURN (@RetVar)ENDthen call it like belowSELECT t1.TeamID, MemberList = dbo.ConcatValues(t1.TeamID)GROUP BY TeamID
------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs