This is the solution if you want the sql to run in SQL Server 2005 :--------------------------------------------------------------select * from employee
where sal in(select distinct top 5 sal from employee order by sal desc)
order by sal desc---------------------------------------------------------------Hope it will work for you .Happy Programming..........