Access SQL:语法错误(缺少运算符)

时间:2018-06-23 19:56:23

标签: sql ms-access syntax-error

我的任务是:选择所有有利可图的航班transportation是有关航班的一般信息。ticket包括有关机票数量及其费用的信息。 所以我尝试更新列profit之后发现最赚钱的 但是我得到了一个错误 syntax error(missing operator)in query expression'((tt.cost*(tt.sold_q+tt.booked_q))-(0,2* trans.plan_oil)) FROM transportation trans'

UPDATE transportation
set profit =((tt.cost*(tt.sold_q+tt.booked_q))-(0,2* trans.plan_oil))
FROM transportation trans, transportation.ticket tt
WHERE profit is null

union

SELECT TOP 1
FROM transposition trans
WHERE profit>0

我是新手,所以很高兴能为您提供帮助

0 个答案:

没有答案