Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Write a query to find second highest salary of an employee.

Answers were Sorted based on User's Feedback



Write a query to find second highest salary of an employee. ..

Answer / rajeshraajan

SQL Server ( For 2nd max Salary )
---------------------------------

select Min(salary) from
( Select Top 2 salary from
( Select distint salary from Employee Order by
salary Desc ))


with this query we can find n th salary.

if am wrong plz correct me.
thx

Is This Answer Correct ?    53 Yes 95 No

Write a query to find second highest salary of an employee. ..

Answer / lia

select employee_name
from employee
order by salary desc
where ROWNUM=2

Is This Answer Correct ?    31 Yes 83 No

Post New Answer

More Automation Testing AllOther Interview Questions

What automated tools are you familiar with?

1 Answers  


Any kind of test which you think should not be automated?

0 Answers  


How did you use automating testing tools in your job?

0 Answers  


what is GDC

0 Answers   InterGlobal,


Tell us how can you create html test report from your test script?

0 Answers  


What is Automation Testing Framework

5 Answers   Covansys,


Explain me what is testng and why is it better than junit?

0 Answers  


How you report bug in to bugzilla

0 Answers   Diebold,


I am looking for selenium RC Training in Hyderabad. can any one tell me the best institute ?

76 Answers  


how many steps in functional testing?

4 Answers   TCS,


Why do you want to keep this kind of information in a separate file and not directly in the code?

0 Answers  


When is automation testing useful?

0 Answers  


Categories