问题
My task is: Choose all profitable flights.
transportation
is a general information about the flight.ticket
includes information about a number of tickets and their cost.
So I tried to update column profit
after that find the most profitable
but I gained such an error
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
I'm a newbie, so I will be glad for any help
来源:https://stackoverflow.com/questions/51004591/access-sql-syntax-errormissing-operator