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

How do I run a script in sql developer?

955


Is coalesce faster than isnull?

970


What is blind sql injection?

1079


Is pl sql different from sql?

1006


What is a natural join sql?

992


What is the use of desc in sql?

980


What are different methods to trace the pl/sql code?

1124


Why having clause is used in sql?

984


What is difference between sql and excel?

1100


How do I save the results of sql query in a file?

980


What is the difference between having clause and where clause?

1067


How to connect a sql*plus session to an oracle server?

1134


what are the different type of normalization? : Sql dba

1032


What is coalesce in sql?

1067


What are dml commands?

1026