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 |
|
johnstern
Yak Posting Veteran
67 Posts |
Posted - 2007-08-23 : 18:05:21
|
| how can I use this fuction to agregate the rows of a column within a select statement something like this Select LocationID,(DECLARE @EmployeeList varchar(100)SELECT @EmployeeList = COALESCE(@EmployeeList + ', ', '') + CAST(Emp_UniqueID AS varchar(5))FROM SalesCallsEmployeesWHERE SalCal_UniqueID = 1SELECT @EmployeeList) as employeeList,address,cityFrom USERS |
|
|
johnstern
Yak Posting Veteran
67 Posts |
Posted - 2007-08-24 : 10:21:22
|
| would the only option be to make a user define funtion and then call it when making my main select statement ? |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2007-08-25 : 01:43:24
|
| Also if you use front end application, you can concatenate the data thereMadhivananFailing to plan is Planning to fail |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
|
|
|
|
|