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

I think you can get this by SQ Override query itself.

SQ->Exp->Target

SQ Override Query:

SELECT ID,MIN(DATE) FROM TABLENAME GROUP BY ID.

Let me know if i am wrong.

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are roles and groups and benefits of using them?

569


Explain the different dimensions.

548


What is exclusive and normal mode for repository services?

709


Write the different tools in the workflow manager?

569


How to load data in informatica ?

567






What are the main issues while working with flat files as source and as targets ?

647


Target increases every day even though no new record was inserted

1103


Define pmcmd command?

618


Design time, run time. If you don't create parameter what will happen

1423


generate date / time dimension in informatica

717


Why union transformation is an active transformation?

651


Reusable transformation and shortcut differences

1371


How to convert multiple rows to single row (multiple columns) in informatica

889


What is informatica worklet?

608


How do you load first and last records into target table?

660