题解 | #统计每种性别的人数#
统计每种性别的人数
https://www.nowcoder.com/practice/f04189f92f8d4f6fa0f383d413af7cb8
简单使用正则表达式和分组count实现即可
select REGEXP_SUBSTR(profile, '[a-z]{4,}') gender, count(*) number from user_submit group by gender
统计每种性别的人数
https://www.nowcoder.com/practice/f04189f92f8d4f6fa0f383d413af7cb8
select REGEXP_SUBSTR(profile, '[a-z]{4,}') gender, count(*) number from user_submit group by gender
相关推荐