I have two tables - `employee` and `department`.
1. `employee` table contains column id,employee name and dept_id
2. `department` table contains column id, department name.
I need exact department name which contains
1. maximum employee and
2. no employee
编辑帮助:我需要一个MySQL查询
Apologizing for bad grammar, here is the example for above two questions what i need.
1. for eg: if two department contains same number of employees, i need to show both department not single by limit.
2. for eg: if more than one department contains 0 employees, i must show those departments particularly.
@Harry喜悦:主题行说:“我需要MySQL查询帮助。” – mellamokb 2011-05-19 04:54:58
他使用MySQL(注意标签)。那就是说,“最大雇员”和“没有雇员”是什么意思? – 2011-05-19 04:55:08