1
SELECT description as FOOD,
price,
price_increase
iif(price_increase/price < .10 or price_increase is null, 'Less than 10% Increase',
iif(price_increase/price > .15 , 'Greater that 15% increase ', ' '))
from l_foods
where (price_increase/price) < .10 or price_increase is null, or (price_increase/price)
> .15
order by description;
我有麻煩試圖完成這一說法。我的iif聲明一直給我錯誤
您在上一行末尾缺少一個逗號。 –