Answers for "how to select maxes only"

0

how to select maxes only

SELECT tt.*
FROM topten tt
INNER JOIN
    (SELECT home, MAX(datetime) AS MaxDateTime
    FROM topten
    GROUP BY home) groupedtt 
ON tt.home = groupedtt.home 
AND tt.datetime = groupedtt.MaxDateTime
Posted by: Guest on October-03-2021

Code answers related to "how to select maxes only"

Browse Popular Code Answers by Language