This is how it is done....
If you want to pivot the data you could run the following command.
DECLARE @DepartmentName VARCHAR(1000)
SELECT @DepartmentName = COALESCE(@DepartmentName,'') + Name + ';'
FROM HumanResources.Department
WHERE (GroupName = 'Executive General and Administration')
SELECT @DepartmentName AS DepartmentNames
and get the following result set.
- sent by Dirkie
Thursday, December 10, 2009
Subscribe to:
Posts (Atom)