题解 | #查看不同年龄段的用户明细#

查看不同年龄段的用户明细

http://www.nowcoder.com/practice/ae44b2b78525417b8b2fc2075b557592

select device_id,gender,
if(age >= 25, '25岁以上',if(age>=20 and age<=24,'20-24岁','其他')) as age_cut
from user_profile;
全部评论

相关推荐

点赞 评论 收藏
分享
点赞 1 评论
分享
牛客网
牛客企业服务