GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Tech FAQs  >  SQL

 Print  |  
Question:  What is the Querry for retrieving the 2nd highest salary in a table?



March 03, 2006 16:31:05 #9
 Vikram Web Expert  Member Since: March 2006    Total Comments: 2 

RE: What is the Querry for retrieving the 2nd highest ...
 

This should work

Select Max(Salary)
From tblSalary
Where Salary < (Select Max(Salary) From tblSalary)

Vikram

     

 

Back To Question