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

How subquery works in sql?

1127


Do we need to create index on primary key?

964


What is pl sql block structure?

1091


What is the difference between drop and truncate commands?

1110


What is a composite primary key?

1142


how to get a list of all tables in a database? : Sql dba

1028


Why is stored procedure faster than query?

1018


What is a behavioral trigger?

1023


What is pl sql in dbms?

991


What are tables in sql?

1115


What is the use of prepared statement?

1071


How to fetch values from testtable1 that are not in testtable2 without using not keyword?

1278


What are different clauses used in sql?

1172


What are the query optimization techniques?

995


Explain alias in sql?

1092