Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how to retrive the max(sal),deptno,empno in datastage?

Answers were Sorted based on User's Feedback



how to retrive the max(sal),deptno,empno in datastage?..

Answer / poornachandrababu.l

Hi, This is Poorna,
take a source and then copy stage,to copy stage 2 o/p links
one output is for aggregator and other for join.

In aggregator
set group=deptno
aggregator type=calculation
column for calculation=sal
max value output column=sal.

In Join stage do equee join based on deptno and sal .

And pass output of join Stage to target.
By doing this wasy we can get Max(sal) of the employee on
particular department.

Is This Answer Correct ?    12 Yes 0 No

how to retrive the max(sal),deptno,empno in datastage?..

Answer / nagaraju k

first take oracle->aggregator->lookup->dataset
next take 2oracle stages and then take join stage join to connect lookup stage then success fully answre will come

Any doubt means call me
+960022516

Is This Answer Correct ?    2 Yes 0 No

how to retrive the max(sal),deptno,empno in datastage?..

Answer / santhosh

Take aggrigrator o/p as reference link to look up then you
will gwt require o/p

Is This Answer Correct ?    2 Yes 0 No

how to retrive the max(sal),deptno,empno in datastage?..

Answer / subbuchamala

SRC--> COPY stage--> 2 o/p links from COPY Stage-->
one is --> AGGREGATOR and other is --> JOIN-->TGT

-->In AGG Stage:
set group=DEPNO
aggregator type=calculation
column for calculation=SAL
max value output column=SAL

-->O/P of AGG Stage:
SAL(max(sal), DEPNO

-->In JOIN stage:
Inner Join on DEPNO and SAL and get the EMPNO as well.
By doing this, we get Max(sal) of the employee on particular DEPNO.

Is This Answer Correct ?    2 Yes 0 No

how to retrive the max(sal),deptno,empno in datastage?..

Answer / guest

we can retrive the max(sal),deptno,empno in aggreator stage.
way is
set group=deptno
aggregator type=calculation
column for calculation=sal
max value output column=max(sal)

Is This Answer Correct ?    6 Yes 5 No

how to retrive the max(sal),deptno,empno in datastage?..

Answer / vamsi

hi,
u r absalutely write
but here the question is to retrive the empno also.....

Is This Answer Correct ?    0 Yes 0 No

how to retrive the max(sal),deptno,empno in datastage?..

Answer / srikanth

hi vamsi
this is srikanth
if it is seq file
it is not at all possible
because we need to get the empno,deptno also.

Is This Answer Correct ?    0 Yes 0 No

how to retrive the max(sal),deptno,empno in datastage?..

Answer / srinu

select sal,deptno,empno from emp where sal=(select max(sal)
from emp);
this is write answer check that......after checking any
queries ask me..........

Is This Answer Correct ?    1 Yes 1 No

how to retrive the max(sal),deptno,empno in datastage?..

Answer / vamsi

when the data is in seq file , how we can get?

Is This Answer Correct ?    0 Yes 0 No

how to retrive the max(sal),deptno,empno in datastage?..

Answer / srikanth

hi srinu this is srikanth
very good
but
give the perfect clarity to the users along with the navigations
any way good solutions

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Stage Interview Questions

sed,awk,head

0 Answers   CTS,


What is PX?

2 Answers   IBM,


Hi guys, please design a job with derivation(solution). write exact conditions. My requirement Source table emp_no qualification 1 a 1 c 2 a 3 c 3 b Target table emp_no qualification 1 b 2 b 2 c 3 a Here every employer have three qualifications i.e a,b and c. what ever source table dont have some qualification, that will be move to target table. Like above. Hope u get the point. Thanks.

4 Answers   UHG,


What is the difference between validated and compiled in the datastage?

0 Answers  


what is the difference between 7.1,7.5.2,8.1 versions in datastage?

3 Answers   IBM,


WHAT IS FORCE COMPILE?

3 Answers   FIS, HCL, Polaris,


I have a file it contain 2 records like empname,company as Ram, Tcs and Ram, IBM. But i want empname, company1,company2 as Ram, TCS,IBM in the target. How?

6 Answers   Cap Gemini,


5) A file contains 10 (1-10) I want trgt like Trgt 1 trgt 2 trgt 3 1 2 3 4 5 6 7 8 9 10

4 Answers  


Whats difference betweeen operational data stage (ods) and data warehouse?

0 Answers  


What are the types of hashed files in data stage

0 Answers  


I have the following columns in the EMP table Empid,Empname,Sal,month(Sal),year(Sal) and DOB(let us say the dob is 15th-Jan-1981) Desing a job such that the output contains the following empname,year(sal),tot(sal) and current age i.e. whether 18yrs or so on

1 Answers   Accenture,


whats relation between configuration file and datasets?

2 Answers   L&T, Wipro,


Categories