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 / rob

Add the below query to source qualifier's SQL OVERRIDE
and you will get the required output

select * from (select min(to_date(date,'dd/mm/yyyy'))as
d,id from emp
group by id order by d)where rownum =1;

source-->SQualifier(with query)----> target

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Enlist the advantages of informatica.

632


What is the need of an ETL tool?

644


How to load data in informatica ?

582


Did u used latest transformations of 8.6.0? for what?

1481


Enlist some properties of sessions.

636






What are the components of workflow manager?

590


Differentiate between Load Manager and DTM?

1673


In which transformation you cannot drag ports into it?

795


What is intricate mapping?

594


Differences between connected and unconnected lookup?

610


HOW TO PROCESS THE ROWS FROM JOINER AND EXPRESSION TRANSFORAMTION TO SORTER TRANSFORMATION

1482


How to do unit testing in informatica? How to load data in informatica ?

655


What are the different components of powercenter?

586


permutations of mapplet

2042


What is the sql query overwrite in source qualifier in informatica

620