Sql check if column is null or empty then 0.