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 / ankit khanijau

Select salary from emp
where MAX(Select salary from emp where salary != MAX(salary))

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are stored procedures faster than dynamic sql?

982


How to write html code in pl sql?

1059


How many parts of a pl sql block are optional?

1035


What is delimiter in pl sql?

992


What are the advantages of indexing?

929


Why do we use set serveroutput on?

926


what are the disadvantages of mysql? : Sql dba

1077


What are the different types of tables in sql?

931


What is sql in oracle?

1004


What is difference sql and mysql?

943


what is rollback? : Sql dba

1024


What does desc stand for?

1021


What is meant by temporal data?

909


What is the difference between sum and count in sql?

938


If the application is running very slow? At what points you need to go about the database in order to improve the performance?

949