Select if null then 0. Commented May 24, 2011 at 20:30.