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 is data type in database?

951


How many sectors are in a partition?

1049


What are properties of the transaction?

972


what is a field in a database ? : Sql dba

1020


what is innodb? : Sql dba

1058


How do I edit a trigger in sql developer?

952


What is sql prepared statement?

955


Can you inner join the same table?

956


how are mysql timestamps seen to a user? : Sql dba

1084


What program will open a mdb file?

936


how to escape special characters in sql statements? : Sql dba

998


Can we use two order by clause in query?

937


What are the benefits of stored procedures?

1021


How to add new employee details in an employee_details table with the following details

1058


What are character functions in sql?

908