> DECLARE @EmployeeList varchar(100) > > SELECT @EmployeeList = COALESCE(@EmployeeList + ',', '') + > CAST(Emp_UniqueID AS varchar(5)) > FROM SalesCallsEmployees > WHERE SalCal_UniqueID = 1 > > SELECT @EmployeeList
I ran that code snippet through the SQL Query Analyzer after customizing it for the pubs database and got this: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com