Return row with the max value of one column per group [duplicate]
This question already has an answer here: Fetch the row which has the Max value for a column 34 answers Oracle SQL query: Retrieve latest values per group based on time [duplicate] 2 answers Get top results for each group (in Oracle) 5 answers GROUP BY with MAX(DATE) [duplicate] 6 answers I am having a hard time doing this without searching the same table at least twice in order to grab the max row, and then grab the value for that row. The table in question is quite big so this is unacceptable. Here is what my table might look like: SCORES ID ROUND SCORE 1 1 3 1 2 6 1 3 2 2 1 10 2 2 12 3 1 6