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 00:46:28 #2
 gomathi.e   Member Since: Visitor    Total Comments: N/A 

RE: What is the Querry for retrieving the 2nd highest ...
 
select max(salary) from <t.name> where salary!=(select max(salary) from <t.name>)
     

 

Back To Question