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