how can i get 2nd highest salary in datastage?can u send me
,thanQ
2)if i had source has 2 records 1st record ie 1st column
contains 1,2,3 and 2nd coulmn contains 10,10,10 i have to
get target as 2nd columns as 20,30,40 how can i?
Answers were Sorted based on User's Feedback
Answer / farzana kalluri
seq file--->sort(descending)stage--->surrogate key stage---
>target
sort tha data in descending order ,then it will shows from
highiest salary, after that keep surrogate key stage it
will automtaically generates the nos so that we can
identifiy the 2nd hieght salary .
Is This Answer Correct ? | 9 Yes | 1 No |
Answer / ram
there are two ways you can get.
1. sort the data in descending order and make true the
create key change column.
2. this can be done in transformer stage at stage variables.
a. first sort the data on descending order (key would the
column which you wanted to be).
define three stage variables in transformer....sv1,sv2 & sv3
set sv2 and sv3 initial values to 0.
then...
if (salary=sv3) then sv2 else (sv2+1) ------> sv1
sv1 -------> sv2
salary --------> sv3
in next link filter...
constraint sv1=1
now you can see all 1st highest salary, 2nd highest
salary..and so on
Is This Answer Correct ? | 5 Yes | 6 No |
when u face critical situation in ur project, how to solve them?
my source is sequencial file and my target is dataset. i am running the job in two node configuration file. my source having 10 records how the data move to target?
i have flat file and using unix how can i generate sequence number into targer?
WHAT are unix quentios in datastage
What are the processing stages?
I have a source like file it have Number of records and i want to load without first and last records in target?Datastage?
What is the difference between informatica and datastage?
what is the difference between datasatge and datastage TX?
how can or from where we can get reference data in scd type2 implementation?
What are the types of containers?
If seg file having 10 records ex:eid 1 2 " " 10 if oracle database having 100 records ex:eid 1 2 " " 100 how to delete matched records permenently from oracle database using datastage ?
can we half project in parallel jobs and half project in server jobs?