SUM(A)+SUM(B) = SUM(A+B). • Define all NUMERIC columns as NOT NULL DEFAULT 0. • Use the ZEROIFNULL function nested within the aggregate function to convert any nulls to zeros for the computation, for example SUM(ZEROIFNULL(x) + ZEROIFNULL(y))
SUM(A)+SUM(B) = SUM(A+B). • Define all NUMERIC columns as NOT NULL DEFAULT 0. • Use the ZEROIFNULL function nested within the aggregate function to convert any nulls to zeros for the computation, for example SUM(ZEROIFNULL(x) + ZEROIFNULL(y))