该错误消息有点误导。当您
select有一堆字段和一个集合时,您必须对
groupby每个字段都
select只有一个
select。因此,您的查询必须是:
select j.job_title, e.job_ID, count(e.job_ID)from employees e, jobs jwhere e.job_id=j.job_idgroup by e.job_Id, j.job_title

该错误消息有点误导。当您
select有一堆字段和一个集合时,您必须对
groupby每个字段都
select只有一个
select。因此,您的查询必须是:
select j.job_title, e.job_ID, count(e.job_ID)from employees e, jobs jwhere e.job_id=j.job_idgroup by e.job_Id, j.job_title