update with case
Hi,
trying to do an update with a case statement... but I can't seem to get the syntax right... when I try the following in Access, I get the error: 'Syntax error (missing operator) in query expression 'CASE WHEN (OrderType = 'NEW') THEN "Slippage" ELSE "Churn" END'
Query:
UPDATE testTable SET CostSplit = CASE
WHEN (OrderType = 'NEW') THEN "Slippage"
ELSE "Churn"
END
|