Home > Software > Data-Warehouse > DataStage
Interview Questions   Tutorials   Discussions   Programs   Discussion   

DataStage - How to retrieve the max(sal),deptno,empno in data stage?




470
views
asked mar September 20, 2014 06:32 AM  

How to retrieve the max(sal),deptno,empno in data stage?


           

1 Answers



 
answered By vishnoiprem   0  

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)
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


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!

Alert