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.
Answer Posted / mahalakshmi
SRC--SRT---FLT---|
| LKP
CPY---| |
| |
|__FNL_|
|
TGT
1.In Sort Stage (Keys on Empid & Emp Ind), Create Key
changeColumn = True
2. In Filter WhereClause-(Keychange=0)OutputLink=0
WhereClause-(Keychange=1)OutputLink=1
3.In Lookup InnerJoin on EmpId
4.In Funnel, Funnel Type=Sorted Funnel
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How do you schedule or monitoring the job?
What is the difference between account and directory options ?
What are routines in datastage? Enlist various types of routines.
Why fact table is in normal form?
CHANGE CAPTURE
How do u convert the columns to rows in datastage?
Can you filter data in hashed file?
Explain the importance of surrogate key in data warehousing?
how to achieve this output ? Two Input columns(ID & Name) - ID | Name 1 | Jack 1 | Kara In output there should be only 1 column which will be populated as - 1,Jack 1,Kara
Triggers,VIEW,Procedures
What is the precedence of stage variables,derivations, and constraints?
Explain connectivity between datastage with datasources?
State the difference between an operational datastage and a data warehouse?
What is quality stage?
What is the difference between server job and parallel jobs?