题解 | #查看不同年龄段的用户明细#
查看不同年龄段的用户明细
https://www.nowcoder.com/practice/ae44b2b78525417b8b2fc2075b557592
select
user_profile.device_id,
user_profile.gender,
case
when user_profile.age>=20 and user_profile.age <= 24 then '20-24岁'
when user_profile.age>=25 then '25岁及以上'
else '其他'
end
from user_profile;
关键词:
case when then else end
腾讯云智研发成长空间 270人发布
查看20道真题和解析

