题解 | #统计每种性别的人数#
统计每种性别的人数
https://www.nowcoder.com/practice/f04189f92f8d4f6fa0f383d413af7cb8
##使用通配符'%'进行模糊查询,使用下划线模糊匹配,查询第15个字符是'm'的记作'male',是'f'的,记作'female' select case when profile like '______________m%' then 'male' when profile like '______________f%' then 'female' end gender, count(*) number from user_submit group by gender;