I have to do a sql query and I don't know how to do. I'd like to get the latest rows for each unique duo A/B. I'm working with postgresql.
For instance:
Table: Person
id  A  B  modification_date
1   5  6  2014-04-12
2   6  7  2014-04-13
3   5  6  2014-04-14
4   9  1  2014-04-15
5   6  7  2014-04-16
And I'd like to get:
id  A  B  modification_date
3   5  6  2014-04-14
4   9  1  2014-04-15
5   6  7  2014-04-16
Appreciate your help.
 
     
     
     
    