Q&A for people looking to bypass life's everyday problems with simple tricks
declare @numbers table(nums integer); insert into @numbers values (10), (9), (2), (8), (2); select top 3 WITH TIES * from @numbers order by nums DESC /* select nums from ( select nums, rank() over (order by nums desc) as rn from @numbers ) t where rn <= 3; */