How to write a query that returns the id of the managers in the department of which no more than 5 people work?(postgreSQL)
How to write a query that returns the id of the managers in the department of which no more than 5 people work? I have a data table employee id integer - id employee name char - name employee department_id…