check if a value is NULL or Less than 0 in one TSQL statement
- by Name.IsNullOrEmpty
ISNULL(SUM(MyTable.Total), 0) AS Total
how can i modify the above statement to also check if Total is less than 0 (zero), such that if Total is NULL or less than 0 (negative), i assign 0 to Total