If you need other fields in the table, and assuming transkey is unique for each acctnbr
select a.acctnbr, a.transkey, a.col1, a.col2, ...
from
(
select acctnbr, max(transkey) as maxkey
from tbl
group by acctnbr
) X inner join tbl a on a.acctnbr=X.acctnbr and a.transkey=X.maxkey