Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql find the row ites of the hoghest value at on column

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #find #row #ites #hoghest #column
ADD COMMENT
Topic
Name
4+4 =