News for hackers. Stuff that matters.
Re:Our SQL interview questions by a8m88 on Tuesday May 28, 2013 @09:44AM (#5779969)
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)

There are no comments on this comment yet.