954,153 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Codings

Hello Sir,

Can i plz have query of "Find the 6th highest salary from the table" .....plz send me d query

Jahira
Newbie Poster
17 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

Try this code below:

select top 1 * 
  from (select top 6 *
	  from #tmpSalary
	  order by Salary) X
  order by Salary desc
huangzhi
Light Poster
48 posts since Feb 2008
Reputation Points: 10
Solved Threads: 13
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You