get me the resultant
input:- 1 x,y,z output:- 1 x
2 a,b 1 y
3 c 1 z
2 a
2 b
3 c
Answers were Sorted based on User's Feedback
Answer / zer0
I think this might work for you .........
Use the following flow :
Source ---> SQ ---> Expression ---> Normalizer ---> Filter -
--> Target
In the expression use variable ports to form 3 columns
depending on the values received in Column2. I mean to say
the given value is X,Y,Z in column2 so create 3 ports and
eac port will have 1-1 values i.e. X then Y then Z.
For this use SUBSTR and INSTR functions.
SUBSTR to get the part of the string and INSTR to find the
position.
VARIABLE_PORT1 ---> substr(column2,1,1)
VARIABLE_PORT2 ---> IIF(instr(column2,',',1,1)!=0,substr
(column2,instr(column2,',',1,1)+1,1),NULL)
VARIABLE_PORT3 ---> IIF(instr(column2,',',1,2)!=0,substr
(column2,instr(column2,',',1,2)+1,1),NULL)
Direct the variable ports to 3 output ports and this output
ports will go to normalizer. In normalizer create 2 ports
Column1 and Column2 and put the number of occurances for
column2 as 3.
The output will be 2 ports from normalizer which will be
feed to filter. In filter, filter out the null values in
column2 if it exists (IIF(ISNULL(Column2),FALSE,TRUE)
Direct the output of filter to target.
Hope this works !!!!!!!!!!
Revert Back if it works
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / kondeti srinivas
HI Zer0 YOUR SOLUTION PERFECTLY WORKING GREAT BUDDY
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / j
Great!!!
It worked really well.
Thanks for the solution.
| Is This Answer Correct ? | 0 Yes | 1 No |
if we are extracting 600000 records from a source table so how much volume of records frequently we load in warehouse. (Iknow its depend on client requirement) still i want to know how much volume of records store in warehouse.
we have 30 wf with 3 batches means 1batch=10 wf 2 batch=10-20 wf 3batch=20-30wf through unix First you have to complete batch ofter second batch have to run how can you do in unix?
what is diff b/t sorter t/r and agg have the option sorter property...
How can one know that a table has indexes and is partitioned? How data will be pulled from Partitions in Oracle for Informatica?
why we use stored procedure transformation?
What is a sorter transformation?
What is the difference between source qualifier transformations source filter to filter transformation?
What are the different transaction levels available in transaction control transformation?
Clarify the utilization of aggregator cache record?
how do u move the code from development to production?
What is incremental aggregation and how it is done?
8 Answers JPMorgan Chase, TCS,
What is joiner cache?