Mysql – Why can't I use this code to select the max row
I'm trying to select the row that contains the largest number and have accomplished it using this fairly simple query: SELECT s1.score, name FROM scores s1 JOIN ( SELECT id, MAX(score) score FROM scores GROUP BY id ) s2 ON…