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

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

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

select device_id,gender,'20-24岁' from user_profile where age>=20&&age<=24
union 
select device_id,gender,'25岁及以上' from user_profile where age>=25
union 
select device_id,gender,'其他' from user_profile where age is null
order by device_id;
全部评论

相关推荐

03-16 13:56
湖南大学 C++
牛客872108596号:到现在没消息是挂了吗查看图片
点赞 评论 收藏
分享
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务