Re: Invalid use of group function
To fix the syntax error, lose the Group By call in the subquery---it must return just a single value.
Simpler way to find the dept_no with the highest count ...
select dept_no, count(*) as N
from emple
group by N
order by N desc limit 1;
Subject
Written By
Posted
February 19, 2016 01:34PM
Re: Invalid use of group function
February 19, 2016 04:26PM
February 19, 2016 05:05PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.