我不确定这一系列 case 语句有什么问题。我在网上看过,语法似乎是正确的,但我得到了错误缺失关键字。任何帮助将非常感激!
CASE
when A = '1' then
when sequence_number = 5 then 9
when sequence_number = 6 then 9
end
when A = '2' then
when sequence_number = 5 then 9
when sequence_number = 6 then 9
end
when A = '3' then
when sequence_number =7 then 9
when sequence_number =8 then 9
end
else T.number
end as number