Say we have a couple of tables like so:
Departments_to_ Employees
department_id
employee_id
Employee
employee_id
I want to find how many employees the department with the maximum amount of employees has.
On other words, I want to find the department with the most amount of employees, then find out how many employees are in that department.
Is there any way to do this using a single SQL statment? I've searched on google, but I haven't seen any articles that go over this specific issue.
Departments_to_ Employees
department_id
employee_id
Employee
employee_id
I want to find how many employees the department with the maximum amount of employees has.
On other words, I want to find the department with the most amount of employees, then find out how many employees are in that department.
Is there any way to do this using a single SQL statment? I've searched on google, but I haven't seen any articles that go over this specific issue.
Comment