I have this query:
select employee_id, max(count(employee_id))
from hr.job_history
group by employee_id;
But it showns an error "ORA-00937: not a single-group group function
". Do you know why?
Also doing the query a little different, limiting the rows, like this:
select count(employee_id)
from hr.job_history
group by employee_id order by count(employee_id) desc fetch first 2 rows only;
It shows an error : "ORA-00933: SQL command not properly ended
". Do you know why? Thanks!