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 the difference between nvl function, ifnull function, and isnull function?

1157


What is difference between procedure and trigger?

1022


Can we join tables without foreign key?

1008


What are the popular database management systems in the it industry?

1038


How to select unique records from a table?

1111


Explain the uses of a database trigger?

1089


How to create a menu in sqlplus or pl/sql?

1171


what are the security recommendations while using mysql? : Sql dba

1181


What is synonyms?

1120


What is lexical units in pl sql?

1209


What is the difference between having clause and where clause?

1116


What is dml with example?

1156


Define overloaded procedure?

1133


what is a constraint? : Sql dba

1234


What is primary key and unique key?

1167