SELECT t1.FieldA, t1.FieldB, t1.FieldC
from mytable t1
WHERE t1.FieldC in
(Select Top 1 FieldC from mytable t2
WHERE t1.FieldA=t2.FieldA and t1.FieldB=t2.FieldB
order by t2.FieldC DESC)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.