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 find the second highest salary from emp table?

Answer Posted / arun

select distinct (a.salary) from employees a
where &N = (select count (distinct(b.salary))
from employees b where a.salary <= b.salary);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between function and trigger?

966


What is dynamic sql in pl sql?

978


What is set serveroutput on in pl sql?

1191


What is the difference between sql and t sql?

963


What are different sql data types?

951


What is Difference Between Unique and Primary Key Constraints?

1057


Explain how exception handling is done in advance pl/sql?

954


What is attribute indicator in pl sql?

958


Which tcp/ip port does sql server run on? How can it be changed? : Sql dba

928


How many sectors are in a partition?

1027


What is a .db file?

925


Is sqlite free?

907


Name the different types of indexes in sql and define them.

1071


What is exit statement?

954


How many types of relationship are there?

973