SELECT
PlayerName, ROUND(SUM(A)/SUM(TO),2) AS ATORatio
FROM
Players_t
INNER JOIN
GameStats_t ON Players_t.JerseyNumber=GameStats_t.JerseyNumber
WHERE
ATORatio < (SELECT SUM(A)/SUM(TO) FROM GameStats_t)
GROUP BY
PlayerName;
我需要返回所有比ATORatio
小於平均值的玩家。爲什麼這個代碼不工作?查找小於平均值的計算比率(SQL)
使用having子句 – 2014-09-29 04:33:19
當我這樣做,MS Access就會要求我輸入ATORatio參數值(我簡直複製並粘貼組通過下面的WHERE行並將其變更爲 – 2014-09-29 04:35:01