Suppose we have multiple records of the following form:
A B C date1
A B C date 2
D E F date3
D E F date 4
I want to only select the distinct records where the date is the largest. So if date2 is the largest, chose that ABC record. Similarly, if date3 is the largest, choose that DEF record.