Count females and males by department in SQL
Filed under Snapdeal
The question
Write an SQL query to retrieve department names along with the total counts of male and female employees in each department.
No write-up yet. Related questions below have one.
Related Snapdeal questions
Collected from public candidate posts and coding forums. Updated Nov 2026.