6
Shouts

TSQL: Some interesting usages of Coalesce « Mehroz’s Experiments

published 664 days, 10 hours, 39 minutes ago posted by mehrozmehroz 665 days, 9 hours, 36 minutes ago
Friday, July 30, 2010 12:01:01 PM GMT Thursday, July 29, 2010 1:03:10 PM GMT

The coalesce function is a really powerful function that can help us in various scenarios. It is described in this MSDN document so I am not going to discuss its working in this post. Instead, I will only present a few interesting usages.

  • Calculating overrideable attributes
  • Combining results from Full Outer Join
  • String concatenation
category: SQL | clicked: 0 | | source: smehrozalam.wordpress.com | show counter code
tags: coalesce, TSQL, transact sql