Skip to content

SQL Compare employees by gender in different departments

I need help to write a query that compares the number of male managers and the number of female managers in each department.

tables are as follows.

Expected Results

Any Ideas How I write this in SQL

Advertisement

Answer

User contributions licensed under: CC BY-SA
7 People found this is helpful