Hi,
I have one scenario to solve:
We have two source table:
Source A | ||
1 | 20.01.2013 | A |
1 | 23.01.2013 | B |
1 | 05.02.2014 | C |
2 | 20.01.2013 | D |
2 | 23.01.2013 | E |
3 | 25.02.2015 | F |
4 | 05.03.2014 | G |
Source B | |
1 | 01.01.2013 |
1 | 22.01.2013 |
2 | 01.01.2013 |
2 | 21.01.2013 |
3 | 01.02.2015 |
4 | 01.03.2014 |
We need to join this two table and get the target table :
Target | ||
1 | 01.01.2013 | A |
1 | 22.01.2013 | B |
1 | 22.01.2013 | C |
2 | 01.01.2013 | D |
2 | 21.01.2013 | E |
3 | 01.02.2015 | F |
4 | 01.03.2014 | G |
Scenario: Source A date need to replace with Source B date if Source A date is fall under the limit of Source B date.
Thanks in advance.
-Amit