Here's part of my table:
id team_id log_id 1 12 1 2 12 1 3 12 1 4 12 1 5 1 2 6 1 2 7 1 3 8 1 3
What query would produce this output (so only the records with the highest log_id values are returned that correspond to team_id)?
id team_id log_id 1 12 1 2 12 1 3 12 1 4 12 1 7 1 3 8 1 3