I have table with ID,PRD_DT,PRD_FLAG,CUST_DT,CUST_FLAG
I need to get max date and its corresponding flag for both the date columns.

Ex:-
1A,10/3/2015,AC,10/3/2015,XY
1A,10/4/2015,AB,10/2/2015,XZ

Output needed
1A,10/4/2015,10/3/2015,XY

I have 100 million + in the table so avoid self-join...

Answers were Sorted based on User's Feedback



I have table with ID,PRD_DT,PRD_FLAG,CUST_DT,CUST_FLAG I need to get max date and its corresponding..

Answer / kiran

Use aggregator transformation and check group by for ID Column and use max function for both the dates.

Is This Answer Correct ?    3 Yes 0 No

I have table with ID,PRD_DT,PRD_FLAG,CUST_DT,CUST_FLAG I need to get max date and its corresponding..

Answer / krish

can be implemented in Information using variable ports. think of current value and previous value


https://etltechsolutions.wordpress.com/2015/11/04/oracle-scenario/

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Informatica Interview Questions

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

9 Answers   Deloitte,


i have 5 session (s1,s,2,s3,s4,s5)i want to execute first 4 session after 5th session how will you do?

8 Answers   iNautix,


HOW DO YOU CONNECT TO REMOTE SERVER ?

1 Answers   Patni, TCS,


Source Qualifier is an active t/r but there is no change of row count then y should we called it active t/r & Router , sorter some times no change in row count then Y we called its active t/r?

2 Answers  


What is the difference between a router and a filter transformation?

1 Answers   TCS,






What does “tail –f” command do and what is its use as an Informatica admin.

0 Answers  


In a sequential batch can you run the session if previous session fails?

4 Answers  


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

3 Answers   BTBP,


In ur current projectu have done any performance tuning of mappings?

1 Answers  


How can you define a transformation? What are different types of transformations in Informatica?

10 Answers  


How can you join 3 tables? Why cant you use a single Joiner to join 3 tables.

1 Answers  


What is IQD file?

1 Answers  


Categories