0
我寫了一個查詢來獲得三個字段的總和,除了大多數總和爲零。我只需要返回大於零的總和。下面是查詢SQL總和,返回字段不是零
SELECT [Product],
SUM([Pounds]) as SumPounds,
SUM([Dollars]) as SumDollars,
SUM([EBITDA]) as SumEBITDA
FROM MyTable
WHERE ([Year] = '2017' AND [Date] <= #8/20/2017#)
SORT BY [Product];
有沒有辦法只返回大於零的總和在Access?
或者'Sum([Pounds] + [Dollars] + [EBITDA])> 0'稍微更緊湊(假設沒有NULL) – ErikE
Way better .... –
你是上帝,我不是。多謝! – jDave1984