SELECT device_id, gender, CASE WHEN age < 20 THEN '20岁以下' WHEN age BETWEEN 20 AND 24 THEN '20-24岁' WHEN age >= 25 THEN '25岁及以上' ELSE '其他' END FROM user_profile;
SELECT device_id, gender, CASE WHEN age < 20 THEN '20岁以下' WHEN age BETWEEN 20 AND 24 THEN '20-24岁' WHEN age >= 25 THEN '25岁及以上' ELSE '其他' END FROM user_profile;