Wednesday, March 4, 2009

COALESCE T-SQL Function

I am constantly needing and forgetting the syntax for this function.  Finally, if I put it here, I'll have quick and easy access to it:

SELECT COALESCE(@column1 + ',', '') + column1
FROM Table1 

No comments:

Post a Comment