View Single Post
  #2 (permalink)  
Old 12-13-2006, 10:52 AM
Laura G.
 
Posts: n/a
Default T-SQL answer. Re: i want to get the third highest salary from a table?

[sql]
SELECT top 3 * into #topthree FROM dbo.myTable
ORDER BY Emp_salary DESC
SELECT top 1 * FROM #topthree
ORDER BY Emp_salary
[/sql]
Edit/Delete Message Reply With Quote