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 / prasanna

select A.* from employee A where 1=(select count(distinct
B.sal) from employee B where B.sal>A.sal)

Is This Answer Correct ?    63 Yes 71 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is pl sql still used?

927


Why self join is used in sql?

919


Does pdo prevent sql injection?

886


How to find 3rd highest salary of an employee from the employee table in sql?

1038


what are the join types in tsql? : Transact sql

983


what is the difference between a local and a global temporary table? : Sql dba

1006


Why do we use procedures?

914


what are the differences between require and include, include_once and require_once? : Sql dba

972


What is multiple partition?

921


What is synonyms?

1000


What is difference between sql and excel?

1010


What is assignment operator in pl sql?

970


what is recursive stored procedure? : Sql dba

932


What is procedure and function in sql?

930


Is primary key always clustered index?

947