how to retrive the max(sal),deptno,empno in datastage?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
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 |
What is difference between join, merge and lookup stage?
What is RCP
why do we need a datawarehouse when we have databases to store data?
How to add zero "0" before record in a field?
what is the function in Transformer stage can act as Rank function in Oracle
I have 3 jobs A,B and C , which are dependent each other. I want to run A & C jobs daily and B job run only on sunday. how can we do it?
What is configuration your file structure 2)I have two databases both are Oracle while loading data from source to target the job takes 30 min but I want to load less time how?
In Informatica,for the table I can find coreesponding dependent mappings.Likewise can I find the dependent jobs with all the information by using the table name
Please Tell me..,I need some Complex Jobs in datastage as per in interview?how to tell and how to explain?please send as well as posiible please
how to export or import the jobs in .ISX file
I have load a Dataset in UAT with 2 Node configuration, imported the job into PROD environment which is 4 node configuration and using this DataSet as SRC to other job. will the job run fine or give any errors? If job runs fine, on how many nodes? 2 nodes or 4 nodes?
I have scenario like this seq file --> transformer --> sort stage --> dataset In this job which prtitioning technique you are using and why???