how to retrive the max(sal),deptno,empno in datastage?
Answers were Sorted based on User's Feedback
Answer / prasad
select empno,sal,deptno from tablename where (sal,deptno)in(select max(sal),deptno from tablename group by deptno)
in datastage
oracle stage->aggregator stage->lookup->dataset
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / xxx
Hi,
In Aggregator stage:
Specify Group By condition on EMPNO column instead of
DEPTNO.
aggregator type=calculation
column for calculation=sal
max value output column=max(sal)
| Is This Answer Correct ? | 0 Yes | 3 No |
I have 2 jobs.I want to ru job B if job A has run 3 times.How can I achieve this through datastage
how to find out number of records imported into source file?
What are the components of datastage?
Hi Every one, I have a scenario plz suggest me 1)On daily we r getting some huge files data so all files metadata is same we have to load in to target table how we can load? 2) One column having 10 records at run time we have to send 5th and 6th record to target at run time how we can send? Hi plz help me for above scenarios and If any one is having JobSequence kindly send me one example and the scenario to my mail ID(nrvdwh@gmail.com)
Source Like department_no, employee_name ---------------------------- 20, R 10, A 10, D 20, P 10, B 10, C 20, Q 20, S and Output should be like this department_no, employee_list -------------------------------- 10, A 10, A,B 10, A,B,C 10, A,B,C,D 20, A,B,C,D,P 20, A,B,C,D,P,Q 20, A,B,C,D,P,Q,R 20, A,B,C,D,P,Q,R,S
i have a small question for datastage, After the desinging (i.e., transformations and loading)part, what we can do?
Can you define merge?
what is hash file
source file is having 5 records while moving into target it want to be 10 records
What are the steps required to kill the job in Datastage?
In a table 100 records are there after 50records job is aborted how can u insert all records in target table.
souce file having the columns like name company krish IBM pooja TCS nandini WIPRO krish IBM pooja TCS if first row will be repeat i want the result like this name company count krish IBM 1 pooja TCS 1 nandini WIPRO 1 krish IBM 2 pooja TCS 2