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

SELECT * FROM TABLE WHERE columnName =
(SELECT MAX(column_name) FROM TABLE WHERE
column_name<(SELECT max(column_name) FROM TABLE))

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is varchar sql?

1207


What is the difference between left outer join and left join?

1037


What is package in pl sql?

1086


Why cannot I use bind variables in ddl/scl statements in dynamic sql?

1265


How do I use google cloud in sql?

1146


What are tables and fields?

1087


Is nosql relational?

999


What is group by in sql?

1126


What are different types of sql?

1263


What are the three forms of normalization?

1092


What is the usage of when clause in trigger?

1091


how do you know if your mysql server is alive? : Sql dba

1127


What is prepared statement in sql?

1100


Can we join two tables without common column?

1060


What is auto increment?

1044