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

Is the primary key an index?

1025


Difference between truncate, delete and drop commands?

1082


what is a control file ? : Sql dba

1033


What is record data type?

911


What is difference between stored procedure and trigger?

1163


What is an exception in PL/SQL? What are the two types of exceptions?

1309


What is ttitle and btitle?

1061


what is the difference between a having clause and a where clause? : Sql dba

1081


Explain the difference between triggers and constraints?

968


What is the advantage of nosql?

1061


What is the difference between distinct and unique in sql?

946


what is an execution plan? When would you use it? How would you view the execution plan? : Sql dba

971


What is nvarchar in sql?

924


what are the different type of sql's statements ? : Sql dba

924


Can a table have no primary key?

1057