How can I format a query to return either zero or null when my original expression may return a negative number.