I have a set of data that has two dates for each row.
The second set of dates is repetitive in some cases.
I only want the last(MAX) date retained for this second set of dates.
The raw data shows:
ID Date1 Date2
312 1/12/2013 1/18/2013
312 1/12/2013 1/29/2013
312 1/21/2013 1/29/2013
312 1/25/2013 1/29/2013
312 1/21/2013 2/20/2013
312 1/25/2013 2/20/2013
The results should be:
ID Date1 Date2
312 1/12/2013 1/18/2013
312 1/12/2013
312 1/21/2013
312 1/25/2013 1/29/2013
312 1/21/2013
312 1/25/2013 2/20/2013
Any thoughts?
The second set of dates is repetitive in some cases.
I only want the last(MAX) date retained for this second set of dates.
The raw data shows:
ID Date1 Date2
312 1/12/2013 1/18/2013
312 1/12/2013 1/29/2013
312 1/21/2013 1/29/2013
312 1/25/2013 1/29/2013
312 1/21/2013 2/20/2013
312 1/25/2013 2/20/2013
The results should be:
ID Date1 Date2
312 1/12/2013 1/18/2013
312 1/12/2013
312 1/21/2013
312 1/25/2013 1/29/2013
312 1/21/2013
312 1/25/2013 2/20/2013
Any thoughts?
Comment