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  >  Interview Questions  >  Database  >  SQL

 Print  |  
Question:  Find second lowest salary from emp table

Answer: display the second lowest salary from emp table without using min & all


July 07, 2008 03:07:30 #8
 ashwin890   Member Since: July 2008    Total Comments: 2 

RE: Find second lowest salary from emp table
 
select min(salary) from emp where salary in ( select distinct top 2 salary from emp order by salary desc)
     

 

Back To Question