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