题解 | #统计每种性别的人数#
统计每种性别的人数
https://www.nowcoder.com/practice/f04189f92f8d4f6fa0f383d413af7cb8
select a.gender,count(a.gender) as number from (select SUBSTRING_INDEX(profile,',',-1) gender from user_submit)a group by a.gender
统计每种性别的人数
https://www.nowcoder.com/practice/f04189f92f8d4f6fa0f383d413af7cb8
select a.gender,count(a.gender) as number from (select SUBSTRING_INDEX(profile,',',-1) gender from user_submit)a group by a.gender
相关推荐