SyntaxFix
Write A Post
Hire A Developer
Questions
select empno from EMP e where salary=(select max(sal) from EMP w where groupby w.deptno having e.deptno=w.deptno)
I hope it will work...