这是我的代码:
Select
cname,
case
WHEN cid < 35 then 'Failed'
WHEN cid > 35 AND < 50 then 'Below Average'
WHEN cid > 50 AND < 60 then 'Average'
WHEN cid > 60 AND < 70 then 'Good'
WHEN cid > 70 AND < 85 then 'Distinction'
WHEN cid > 85 then 'Outstanding'
end as Report
from cus
我不知道上面的代码有什么问题。它没有得到正确执行。
它显示了这样的结果。
消息 102,级别 15,状态 1,第 3 行
'<' 附近的语法不正确。
我可以知道我犯了什么错误,以及如何克服它吗?