select * from ( select *, row_number() over (partition by `Column1` order by `Column2` desc) VersionRank from Table1 ) T where `VersionRank` = 1
row_number
SELECT * FROM ( SELECT row_number() over (partition by Column1 order by Column2 desc) VersionRank, * FROM Table1 ) T WHERE T.VersionRank = 1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)