We can use this query In data-stage:
Oracle Stage->Aggregator Stage->lookup->dataset
select empno, sal, deptno from EMPLOYEE where (sal,deptno) in (select max(sal),deptno from EMPLOYEE group by deptno)
Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!