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 get max salary of an organization using data stage
stages...........

can any body help me plz.......

Answers were Sorted based on User's Feedback



How to get max salary of an organization using data stage stages........... can any body help me..

Answer / naga

firstly read the file into database or sequential file and
make sure the file has company as a column in this file and
give its output to aggregator and in aggregator give
group=company and column to calculate=sal and maximum value
for output column=maxsal and do mapping to the dataset and
you will get the required result.

Is This Answer Correct ?    19 Yes 4 No

How to get max salary of an organization using data stage stages........... can any body help me..

Answer / amjad

Hi Naga,
If we use Aggregator stage, it will give the max value from
different groups, as per your example, it will group by
company, then it will give the max sal from each group. but
how to max sal from all the groups, i mean the out put
should be only one value.

Ex:

COMPANY,SAL
A, 2000
B, 3000
C, 4000
A,5000
B,6000
C,7000
A,8000
B,9000
C,9999

if we do like you mention output will be like :
comp,maxsal
A,8000
B,9000
C,9999

But, the output should be only
C,9999

Plese let me if iam wrong.

Is This Answer Correct ?    10 Yes 0 No

How to get max salary of an organization using data stage stages........... can any body help me..

Answer / guest

Frist using Sortstage sort the records based on sal column
for desc order and Each record unqiely identify using
surogatekey after that filterstage filter the first record
based on sur column and drag and drop only in sal column
in the output.Then We get the Max sal

Is This Answer Correct ?    4 Yes 0 No

How to get max salary of an organization using data stage stages........... can any body help me..

Answer / nandhini

Create one dummy key and set the value as 1 for all input
columns and use remove duplicate stage. Here use this dummy
as key and use sorting, partitioning for dummy and company
columns & use sorting (descending) for salary column and in
properties tab, select duplicate to retain as last.

Is This Answer Correct ?    3 Yes 0 No

How to get max salary of an organization using data stage stages........... can any body help me..

Answer / sagnik

You need to sort by your SAL not COMPANY.

Is This Answer Correct ?    1 Yes 0 No

How to get max salary of an organization using data stage stages........... can any body help me..

Answer / shar

ok lets us say after getting result like
a,8000
b,9000
c,9999
acc to nandhini using dummy key would give me
a,8000,1
b,9000,1
c,9999,1
then use rem duplicate stage then we get 9999 as output after we assign retain duplicates=last for dummykey col.
what if
i have diff data and got output like below after aggreagation
a,9000
b,18000
c,10000
now what...?

Is This Answer Correct ?    0 Yes 0 No

How to get max salary of an organization using data stage stages........... can any body help me..

Answer / guest

U can use Aggregator stage in Datastage

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More Data Stage Interview Questions

What is the difference between datastage and datastage tx?

0 Answers  


What is the Difference Between DataStage 7.5 version and 8.1 Version?

10 Answers   IBM,


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

2 Answers  


Hi Gus, Can u pls tell me How can u Call the Shell Scripting/Unix Commands in Job Sequence?

3 Answers   IBM,


What are the functionalities of link partitioner?

0 Answers  


in oracle target stage when we use load option and when we use upsert option?

0 Answers  


What is the use of datastage designer?

0 Answers  


In a batch if a job fails in between and you want to restart the batch from that particular job and not from the scratch then what will you do?

0 Answers  


Parallel job contains more than 20 stages. I want to find out which stage is more performance incentive.

1 Answers   IBM,


What is the difference between server job and parallel jobs?

0 Answers  


i have source data like empno,enmae 11 ,aa 12 ,bb i want output like empno,ename 11 ,aa 12 ,bb 11 ,aa 12 ,bb

7 Answers   TCS,


source file is having 5 records while moving into target it want to be 10 records

4 Answers   IBM,


Categories