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

in datastage scenario this is sourec data i want this traget? tell me please? source target ------- ------- Mohan,Prasad,Naresh Mohan Prasad Naresh

1 Answers   IBM,


What is the sortmerge collector?

0 Answers  


What is aggtorec restructure operator?

0 Answers  


What are orabulk and bcp stages?

0 Answers  


Name the different types of Lookups in Datastage?

0 Answers  


how can we create a Sorrogate key in transformer stage? I want it in parallel mode

2 Answers   Syntel,


What are stage variables, derivations and constants?

0 Answers  


What is job control?

0 Answers  


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

3 Answers   IBM,


how to get the unique records on multiple columns by using sequential file stage only

3 Answers  


Name the command line functions to import and export the DS jobs?

0 Answers  


Which warehouse using in your datawarehouse

0 Answers   IBM,


Categories