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:28:35
|
Hello All,I have a table (ATABLE) that contains the following(int) (varchar)UserID Company1 ABC1 DEF1 GHI2 ABC2 DEF3 ABCI am trying to create a VIEW that will produce the following.UserID Companies1 ABC,DEF,GHI,2 ABC,DEF,3 ABC,I have tried the following ->select UserID, Sum(Company + ',')from ATABLEgroup by UserIDhowever I get an error that the SUM does not work with varcharany ideas? |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2007-08-29 : 09:35:59
|
Partly MadhivananFailing to plan is Planning to fail |
 |
|
ryager
Starting Member
3 Posts |
Posted - 2007-08-29 : 09:59:13
|
That worked GREAT thank you. |
 |
|
|
|
|