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


June 06, 2008 06:37:05 #6
 priiti_bangarwa26   Member Since: June 2008    Total Comments: 3 

RE: Find second lowest salary from emp table
 
sel emp_no,rank(emp_no) from emp order by acct_no asc QUALIFY RANK(emp_no) =2
     

 

Back To Question