I have a table (EMP) I know that using the COALESCE function we can get the values of any column in this way
23,23,45,34
SELECT OfferID FROM Emp where EmpID= 23
but I am not getting the syntax to achieve this
Any help would be great, to resolve this issue.
This approach to aggregate concatenation is not guaranteed to work. If you are on at least SQL Server 2005
XML PATHor CLR aggregates are preferred.The definitive article on the subject is Concatenating Row Values in Transact-SQL