【发布时间】:2021-02-03 10:23:30
【问题描述】:
我有这个问题:
select employee_id, max(count(employee_id))
from hr.job_history
group by employee_id;
但它显示错误“ORA-00937: not a single-group group function”。你知道为什么吗?
查询也略有不同,限制行数,如下所示:
select count(employee_id)
from hr.job_history
group by employee_id order by count(employee_id) desc fetch first 2 rows only;
它显示错误:“ORA-00933: SQL command not properly ended”。你知道为什么吗?谢谢!
【问题讨论】:
-
哪个Oracle版本?