Get the number of male and female premium users in the platform.
Expected Output Format
gendertotal_usersF...M
1
Expert's answer
2021-03-16T07:49:25-0400
selectcount(casewhen user_category='M'then1end) as male_cnt,
count(casewhen user_category='F'then0end) as female_cnt
from quiz.user_details
where Is_premium =1;
Comments