题解 | #分群并计算群体人数#
分群并计算群体人数
https://www.nowcoder.com/practice/24319fd5c03e482c935783107114933d
select ( case when age < 20 then '20以下' when age >= 20 and age <= 50 then '20-50' when age > 50 then '50以上' else '未填写' end ) as age_group, count(customer_id) as user_count from customers_info group by age_group
我真的是无语了,出题人语文这么差吗,以上以下这都是包含本数的呀,真真无语了,而且强烈建议在视频之外多加一个板块直接公布题目答案