Which is most correct - coalesce(sum(value)) OR sum(coalesce(value))?
<p>I have seen both on SO, but I wonder if there is a "best practice" or advantage to coalesce the sum before or after:</p>

<pre><code>coalesce(sum(value),0)  OR  sum(coalesce(value),0)
</code></pre>

<p>Just curious...</p>