Q&A about the site for members of the workforce navigating the professional setting
declare @numbers table(nums integer); insert into @numbers values (10), (9), (8), (8), (2), (10); select top 1 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; */