如何解決 SUM(A) + (SUM B) != SUM (A+B)

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))

你可能感兴趣的:(function,null,nested)