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 the use of target designer?

708


Design a mapping to load a target table with the following values from the above source?

981


How can we handle two sessions in informatica?

691


Quickly characterize reusable change?

808


what is informatica metadata?

697






Suppose we configure sorter transformations in the master and detail pipelines with the following sorted ports in order: item_no, item_name, price. When we configure the join condition, what are the guidelines we need to follow to maintain the sort order?

758


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

1754


-Which expression we can not use in Maplets?, -Can we join(relate) two dimensions in a schema? -Why and where we use 'sorted input' option?

5148


How can you define user defied event?

724


What is domain in terms of informatica?

647


What is persistent lookup cache?

693


How can you validate all mappings in the repository simultaneously?

898


what is $$$$?

1826


how to construct simple biogas digerter? please show me detail drawing and specification of simple biogas construction?

2070


How to create different types of slowly changing dimensions (SCD) in informatica using the mapping wizard?

716