Suppose we have a (assume relational) source table

Product_Id Month Sales
1 Jan x
1 Feb x
. . .
. . .
1 Dec x
2 Jan x
2 Feb x
. . .
. . .
2 Dec x
3 Jan x
3 Feb x
. . .
. . .
3 Dec x
. . .
. . .

and so on. Assume that there could be any number
of product keys and for each product key the sales
figures (denoted by 'x' are stored for each of the
12 months from Jan to Dec). So we want the result
in the target table in the following form.

Product_id Jan Feb March.. Dec
1 x x x x
2 x x x x
3 x x x x
.
.

So how will you design the ETL mapping for this case ,
explain in temrs of transformations.

Answers were Sorted based on User's Feedback



Suppose we have a (assume relational) source table Product_Id Month Sales 1 Jan x ..

Answer / pallavi

we could do it using Normalizer.

Is This Answer Correct ?    10 Yes 5 No

Suppose we have a (assume relational) source table Product_Id Month Sales 1 Jan x ..

Answer / girish

Use an aggregator tx. Pass the ports (Product_id, Month,
Sales) to aggregator, group by Product_ID, manually create
12 ports for month like Jan, Feb, Mar, etc. Include an
expression for 12 ports, individually, as Jan -> IIF(Month
= Jan,Sales), Feb -> IIF(Month = Feb, Sales), etc.

Move these ports to the next transformation or to the
target. This should give the required output.

Is This Answer Correct ?    2 Yes 0 No

Suppose we have a (assume relational) source table Product_Id Month Sales 1 Jan x ..

Answer / mukesh

Use an aggregator. Pass the ports (Product_id, Month,
Sales) to aggregator, group by Product_ID, manually create
12 ports for month like Jan, Feb, Mar, etc. Include an
expression for 12 ports,
Jan -> MAX(IIF(Month
= Jan,Sales)), Feb -> MAX(IIF(Month = Feb, Sales)), etc.

Without max, it will take last row..

Move these ports to the next transformation or to the
target. This should give the required output.

Is This Answer Correct ?    1 Yes 1 No

Suppose we have a (assume relational) source table Product_Id Month Sales 1 Jan x ..

Answer / seekax

The reverse operation can be done using normalizer . . . To
carry out this process above mentioned we need to use
spliter in combination with joiner . . .


---- split using month -------- (into 12 sets of 2-columns)
1st SET 2nd SET
------- --------- . . . . .
product id,jan product id,jan
1,x 1,x
2,x 2,x
3,x 3,x
4,x 4,x . . . . . . .


---- join using product_id --------

Product_id Jan Feb March.. Dec
1 x x x x
2 x x x x
3 x x x x

Is This Answer Correct ?    0 Yes 3 No

Suppose we have a (assume relational) source table Product_Id Month Sales 1 Jan x ..

Answer / janet

Simple SQL logic in the source qualifier sql will take care
of this issue.

Select product_id, month, sum(sales)
from source_table
group by product_id, month;

Then you can just pass the values straight through. No
need to split, aggregate, and join, etc.

Is This Answer Correct ?    4 Yes 8 No

Post New Answer

More Informatica Interview Questions

I have source like this year account month amount ----- --------- ------ -------- 1999 salaries jan 9600 1999 salaries feb 2000 1999 salaries mar 2500 2001 benfits jan 3000 2001 benfits feb 3500 2001 benfits mar 4000 -->i need target like this year account month1 month2 month3 ----- --------- -------- -------- -------- 1999 salaries 9600 2000 2500 2001 benfits 3000 3500 4000

4 Answers   HCL,


Can you generate reports in Informatcia?

1 Answers  


Hi, There is a session in my workflow which is running for a long time, atlast we found the cause is the missing index. My session is running via a stored procedure. Can I create an Index on the table which the stored procedure is using while my session is running? Please suggest. My Informatica version is PC 8.0.6 My Oracle APPS is 11.5.3. Thanks,

0 Answers   HCL,


source table have 3 records? and it is sucessfully loaded into target. and 4more records is added in to source .that means 7 records now in source. we have to load the remaining 4 records into the same trgt table with maintian top 3 records. how ?can any one give me the data flow of this logic plz?

5 Answers   Wipro,


Tell me about your experience in informatica? what is best mark you can give yourself? How to answer this question?

0 Answers   HCL,






What is xml source qualifier transformation in informatica?

0 Answers  


How to find from a source which has 10,000 records, find the average between 500th to 600th record?

3 Answers  


What is a repository? And how to add it in an informatica client?

0 Answers   Informatica,


when will we go for unconnected lookup transformation in Informatica?

6 Answers   CTS, IBM,


In a concurrent batch if a session fails, can you start again from that session

1 Answers  


What is workflow monitor?

0 Answers  


Explain the different lookup methods used in informatica?

0 Answers  


Categories