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 / subhash
In DataStage:
SRC--->CPY---->JOIN----TFM---TGT
--------|---- /
--------|--- /
--------|-- /
--------|- /
--------AGG
In AGG, GROUP BY EmpId, calculate MIN and MAX for each
EmpId.
JOIN both one copy from CPY and 2nd Aggrigated copy from
AGG.
In TFM, put constraint: IF MIN=MAX, then populate to TGT
then u will get required output.
Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
What are the areas of application?
How do you remove duplicate values in datastage?
Can you explain link buffering?
What is oci?
What is "fatal error/rdbms code 3996" error?
Can you explain kafka connector?
What are the partitioning techniques available in link partitioner?
Difference between server jobs & parallel jobs?
what is the custome stage in datastage? how can we impliment that one? plz tell me
What are the components of ascential data stage?
Hi, what is use of Macros,functions and Routines..? At what situation you are used. If you know the answer please explain it. Thanks.
describe the Steps to confiure a Qlogic switch
How to manage date conversion in Datastage?
Define repository tables in datastage?
Could anyone give brief explanation bout datastage admin