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 |
how to validate the jobs
What are the components of datastage?
what is the definitions for Datawarehose and Datamart?
How did you reconcile source with target?
Input Data is: Emp_Id, EmpInd 100, 0 100, 0 100, 0 101, 1 101, 1 102, 0 102, 0 102, 1 103, 1 103, 1 I want Output 100, 0 100, 0 100, 0 101, 1 101, 1 Means Indicator should either all ZEROs or all ONEs per EmpId. Impliment this using SQL and DataStage both.
In the source seq file have 2 columns, i.e input: col1,col2 1,1 2,rajesh 3,15000 4,2 5,suresh 6,16000 7,3 8,veeru 9,17000 I want in the output like: eno,ename,sal 1,rajesh,15000 2,suresh,16000 3,veeru,17000 any one answer this scenario
What are the types of containers?
1.new record it will insert but changes of natural key is not present in taget i want to update (here key is composite natural key )can any one help this to explan how to do
what is main difference between change capture and change apply stages
How will you move hashed file from one location to another location?
how can we generate row values like 1 1 1 2 2 2 3 3 3 using col generator plz let me know
what is the use of invokation id