假设我有以下表格
Name Firm Salary
Aron X 100
Bill X 200
Clint Y 300
我想找到拥有最多员工数量并产生结果的公司
Firm Total
X 2
然而,这是我的问题,以下查询永远不会在MySQL中运行
select firm,max(Number_Of_Employees) as Total from
(select firm,count(*) as Number_Of_Employees from works group by firm)
as temp;