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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is workflow manager?

773


Explain the different dimensions.

729


What is the procedure for creating independent data marts from informatica 7.1?

770


Explain about cumulative Sum or moving sum?

792


How do you load unique records into one target table and duplicate records into a different target table?

943


What is rank transformation?

746


in staging we are merging the data and remove the inconsistants data that type of situation what u will done and type of functions u can use

1842


hi real timers . iam waiting for ur reply regarding ETL TESTING

2012


expain about the tune parameters?

2129


What are the various types of transformation?

861


What will be the approach?

749


Explain sql transformation in script mode examples in informatica

793


How do you update the records with or without using update strategy?

865


Explain the various test procedures used to check whether the data is loaded in the backend, performance of the mapping, and quality of the data loaded in informatica?

760


What is decode in static cache?

786