题解 | #查看不同年龄段的用户明细#
查看不同年龄段的用户明细
https://www.nowcoder.com/practice/ae44b2b78525417b8b2fc2075b557592
SELECT device_id,gender, CASE WHEN age < 20 THEN '20岁以下' WHEN age >= 20 and age<=24 THEN '20-24岁' WHEN age >= 25 then '25岁及以上' when age IS NULL then '其他' END age_cut FROM user_profile