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 / yash goyal

Select Distinct salary
from employees e
where &no-1=(select count(distinct salary )
from employees
where E.salary < salary);

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between explicit and implicit cursors in oracle?

1069


What is data profiling in sql?

1084


Is like operator in sql case sensitive?

1031


What are the two types of periodical indexes?

940


What is a parameter query?

1090


How do you get column names only for a table (sql server)?

1170


How do you pronounce sql?

1018


Explain isolation levels. : Transact sql

1074


What is multiple columns?

1071


What is dialect in sql?

952


What is not in sql?

952


how to get help information from the server? : Sql dba

943


Why primary key is required?

1010


What is a recursive join sql?

1077


Do we need commit after truncate?

1087