Better HN
topnewbestaskshowjobs
Log inSign up

a8m88

4 karma · joined May 28, 2013 (13y ago) · 1 submissions

Submissions

comment 13y ago · link · parent

Using COALESCE here is correct, but sum() returns NULL if there were no non-NULL inputs, so COALESCE should go around it:

COALESCE(sum(salary), 0)