为什么我的CASE语句失败?

时间:2016-03-23 04:12:22

标签: sql ms-access

SELECT c.AssetClass, SUM(c.MarketValue) AS MVCurrent, SUM(p.MarketValue) AS MVPrior, SUM(c.MarketValue) / SUM(p.MarketValue) AS PercentageVariation,
    CASE
    WHEN SUM(c.MarketValue) / SUM(p.MarketValue) BETWEEN 0.9 AND 1.1
    THEN 'PASS'
    ELSE 'FAIL'
    END AS Result
FROM [Nov] AS p, [Dec] AS c
;

是否与双表有关?

0 个答案:

没有答案