You can use row_numbereach duplicate to increase the number and then delete the second and higher duplicates:
delete tbl
from (
select row_number() over (partition by FkIdResult, FkIdSimul
order by Pk desc) as rn
, *
from YourTable
) tbl
where rn > 1
Working example in SE data.
source
share