access中的SQL語言
我想將三種醫師的人數作加總
SELECT two.地區別, two.西醫師, two.中醫師, two.牙醫師, (two.西醫師+two].[中醫師]+[two].[牙醫師]) AS ['doctotal']
FROM two
WHERE (((two.西醫師)<999999) AND ((two.中醫師)<999999) AND ((two.牙醫師)<999999) AND ((([two].[西醫師]+[two].[中醫師]+[two].[牙醫師]))>500));
但是
輸入進SQL時,卻出現問題
我有嘗試改掉宣告新的類別的部分
SELECT two.地區別, two.西醫師, two.中醫師, two.牙醫師,
("西醫師"+"中醫師"+"牙醫師") AS "doctotal"
FROM two
WHERE (((two.西醫師)<999999) AND ((two.中醫師)<999999) AND ((two.牙醫師)<999999) AND ((("西醫師"+"中醫師"+"牙醫師"))>500));
SELECT two.地區別, two.西醫師, two.中醫師, two.牙醫師, (two.西醫師 + two.中醫師 + two.牙醫師) AS 'doctotal' FROM two WHERE two.西醫師 < 999999 AND two.中醫師 < 999999 AND two.牙醫師 < 999999 AND (two.西醫師 + two.中醫師 + two.牙醫師) > 500