I have this query:
SELECT tag, filename, timecode, COUNT(tag) AS total
FROM dados
WHERE dados.tag = 'movie'
AND dados.filename = 'movie2.mp4'
GROUP BY timecode
And this is the result:
But i only want the 3rd row, more precisely the timecode=2 because it's the most consisting tag with the higher value. How can i grab the highest value of timecode from those rows?