何も返さない次のクエリがあります。
select
case when Username like 'participanta%' then
'Novice'
when Username like 'participantb%' then
'Experienced'
when Username like 'participantc%' then
'Master'
end as 'group'
from Users;
Usernameのような場合、値を「初心者」にしたいだけですparticipanta12。
私はまたUsername like、2番目と3番目の後を取り除くだけのこのクエリを試しましたwhen:
select
case when Username like 'participanta%' then
'Novice'
when 'participantb%' then
'Experienced'
when 'participantc%' then
'Master'
end as 'group'
from Users;
単一のユーザーグループに対しても試しました:
select
case when Username like 'participanta%' then
'Novice'
end as 'group'
from Users;
それでも何も返されません。