5 ms·
Why shouldn't the "sum" of an empty set return 'NULL'? I could understand why a 'count' of an empty set should be 0 (which it is in SQL Server).
by aeorgnoieang 13y ago
Why shouldn't the "sum" of an empty set return 'NULL'? I could understand why a 'count' of an empty set should be 0 (which it is in SQL Server).
- eurleif 13y agosum(A) + sum(B) = sum(A ∪ B) sum(A) + sum({}) = sum(A ∪ {}) sum(A) + sum({}) = sum(A) sum({}) = 0