Mysql – Select DISTINCT but return all columns with MAX(field)?
I am trying to create a SELECT statement that selects all (*) the fields from a table that meet the following: 1 row for each DISTINCT( client_id, fileno, ppyear) combination, but only including the MAX(ppyear) Based on what I have…