Checking if NULL,using MySQL:
ISNULL(1+0)
0