更新时间:2022-03-17 21:31:42
尝试以下解决方案:
select MT.First, MT.Second, MT.Third, MT.Fourth
from MyTable MT
join ( select first, max(Fourth) as Fourth
from MyTable
group by first
) T on T.first = MT.First
and T.Fourth = MT.Fourth