Shouldn't it be (as it appears was suggested in your earlier post):
SUM( COALESCE( price, 0 ) ) AS total
If the coalesce is outside the sume, it doesn't fix the underlying issue of apply an aggregate function on a set of data that may contain a NULL value. Or, perhaps I'm missing something...
Read More