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.
Author |
Topic |
ryager
Starting Member
3 Posts |
Posted - 2007-08-29 : 09:19:22
|
Hello All,I have a table (ATable) that contains the following(int) (varchar)UserID Company1 ABC1 DEF1 GHI2 ABC2 DEF3 ABCand I am trying to create a view that looks likeUserID Companies1 ABC,DEF,GHI,2 ABC,DEF,3 ABC,I've tried->select UserID, Sum(Company + ',')from ATablegroup by UserIDHowever the Varchar datatype is incorrect for the SUM.Any idea how to do this? |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
|
|
|
|