I have a query something like this:
"SELECT SUM((Price - Adjustment) * Quantity) AS SumPrice WHERE ..." (etc)
The Adjustment field is default NULL, so sometimes (most of the time actually) this value is a NULL, which seems to screw up the results.
Is there some SQL-esque way to say "Price - Adjustment IF Adjustment is not null"?
Or do I "just" need to replace all my nulls with zeroes? Sure hope not 🙂