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...

how to get second highest salary in SQL(as/4000

Answer Posted / santosh kumar

select employee_id,last_name,salary
from
(select rownum r,employee_id,last_name,salary
from (select employee_id,last_name,salary from employees
order by salary desc)) a
where a.r=&nth_salary;

---u can find nth highest salary----
for more detail u can contact me at
rajgupta7666@gmail.com....

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are types of exception?

918


What is pl/sql table? Why it is used?

1032


What is a variable in sql?

1000


How do I create a sql script?

1096


What is having clause in sql?

961


explain what is mysql? : Sql dba

1078


What is varchar data type in sql?

1079


How global cursor can be declare with dynamic trigger ?

2206


Can we insert data in view?

955


How we can update the view?

1049


How do I remove sql plus from windows 10?

1095


Cite the differences between execution of triggers and stored procedures?

1075


what are the differences among rownum, rank and dense_rank? : Sql dba

1037


What is using in sql?

1085


What is the purpose of the sql select top clause?

1105