how can find maximum salary by using Remove duplicate stage?

Answers were Sorted based on User's Feedback



how can find maximum salary by using Remove duplicate stage?..

Answer / subbuchamala

For RMD Stage we need Grouping Keys, Add one extra hard coded Column to each Input records in previous stage.
DUMMY=1

In RMD Stage,
HASH partition on DUMMY, Sort DESC on Salary

and select DUMMY as Key in properties tab.
"Duplicate to Retain"=First.

then you will get only Highest Salart only from RMD Stage

Is This Answer Correct ?    5 Yes 0 No

how can find maximum salary by using Remove duplicate stage?..

Answer / narayana.3ds

R.D Stage remove the duplicates every one knows but u can
find max salary......
Give the key of salary order by descending other
option u can put=first

Is This Answer Correct ?    5 Yes 2 No

how can find maximum salary by using Remove duplicate stage?..

Answer / phani kumar

By using Sort stage, sort the data in Descending order, then
use remove duplicates stage, set option as first occurrence
of records. Then we will get max sal record first.

Is This Answer Correct ?    2 Yes 1 No

how can find maximum salary by using Remove duplicate stage?..

Answer / akila

In case an explicit sort stage is used like inteh reply
above, the sort will be done on emp_id(key field) and the
salary. But remove duplicate will be done only on emp_id. I
guess that this might result in a warning like 'sort and
remove duplicates keys do not match'.

Is This Answer Correct ?    0 Yes 0 No

how can find maximum salary by using Remove duplicate stage?..

Answer / anitha

https://www.docstoc.com/pro/2134166

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More Data Stage Interview Questions

i want for the 3rd max sal using for the any stage but max sal is based on the deptno ? any body know this ans pls send this mail siva3me@gmail.com

2 Answers   Wipro,


What is exact difference between Parallel Jobs and server Jobs..

8 Answers   DELL, IBM,


how to sort two columns in single job in datastage.

0 Answers   TCS,


When we will go for Data elements?

3 Answers   TCS,


WHAT are unix quentios in datastage

2 Answers   TCS,


Source has 2 columns: USA,NewYork INDIA,MUMBAI INDIA,DELHI UDS,CHICAGO INDIA,PUNE i want data in target like below: INDIA,MUMBAI1 INDIA,DELHI2 INDIA,PUNE3 USA,NEWYORK1 USA,CHICAGO2

0 Answers  


how to find diff between 2 dates without using Icon... funtions?

1 Answers  


What is the use of hoursfromtime() function in transformer stage in datastage?

0 Answers  


what is diff b/w datastage 8.1,8.5,8.7?

1 Answers   IBM,


HOW CAN WE SEE THE DATA IN DATASET?

4 Answers  


what are the types of nodes

4 Answers   HCL, TCS,


how many datamarts we will use in real time project and when will use the datamart?pls send the replay early

2 Answers   Tech Mahindra,


Categories