create table test(ID int, name char(1), Rank int)
insert test values
(2,'a',88 ),(3,'b',56),(6,'t',12),(1,'c',45),
(4,'v',5),(4,'K',5),(5,'d',11),(6,'r',1)
;with cte as
(
-- if you only want 1 row at a time, exclude 'with ties'
select top 1 with ties ID, name, Rank
from test
order by rank
)
delete
from cte
output deleted.ID, deleted.name, deleted.Rank
Result first run:
ID name Rank
6 r 1
Result second run:
ID name Rank
4 v 5
4 K 5