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

use this query. it works great.

select max(sal) from table_name where sal<(select max(sal)
from table_name)

Is This Answer Correct ?    415 Yes 59 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

define join and explain different type of joins? : Sql dba

898


what is a unique key ? : Sql dba

1025


How to revise and re-run the last sql command?

1099


Why function is used in sql?

878


What does varchar include?

906


What is a temporal data type?

979


Why is normalization important?

972


What is the difference between partition and index?

923


Explain the difference between drop and truncate commands in sql?

962


Show the two pl/sql cursor exceptions.

1104


What is the use of count (*) in sql?

980


How to run pl/sql statements in sql*plus?

1021


How to select all records from the table?

1067


Explain what is a view?

997


What is the difference between execution of triggers and stored procedures?

1051