How to create a mapping ?

id date
101 2/4/2008
101 4/4/2008
102 6/4/2008
102 4/4/2008
103 4/4/2008
104 8/4/2008

O/P - shud have only one id with the min(date)
How to create a mapping for this

Answer Posted / kalyan

I guess the below logic will solve this question..

Sq -> Expression T/R -> Aggr t/r -> Target

Create a constant port in Expression t/r and then pass the 3
fields id, date & const port to the aggregate t/r... Create
a new port calculating mindate.. Now do a group by on the
Const field ; connect id & min Date fields to the Target...

FYI, If u don't apply group by on any column of the table ;
can not calculate the Aggr values...

Please correct me if I am wrong...

Is This Answer Correct ?    1 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can a transformation be made reusable?

667


can you please explain me pre session and post session options?

6387


What is sorter transformation?

587


How might one distinguish in the case of mapping is right or not without associating session?

642


Can u generate reports in Informatica?

659






Explain what transformation and how many are there in informatica?

491


How to generate sequence numbers without using the sequence generator transformation?

649


what is diff b/t sorter t/r and agg have the option sorter property...

1748


Explain the tuning lookup transformation - informatica

615


what is informatica metadata?

607


What is the surrogate key?

644


What is the status code in stored procedure transformation?

688


How to load the name of the current processing flat file along with the data into the target using informatica mapping?

702


What is a grid in Informatica?

616


To import the flat file definition into the designer where should the flat file be placed?

679