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

select TOP salary from employee where salary in( select TOP 2 salary from employee order by salary desc) order by salary asc

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate pl/sql and sql?

1065


What is coalesce in sql?

1060


How do I run a program in pl sql?

1002


How would you pass hints to the sql processor?

981


What is pl sql and why it is used for?

1113


Can we commit inside a trigger?

988


Why do we use procedures in pl sql?

1039


what is a constraint? Tell me about its various levels. : Sql dba

986


When you have to use a default "rollback to" savepoint of plvlog?

1191


Whis is not false in primary key?

1455


what is offset-fetch filter in tsql? : Transact sql

948


What is inner join in sql?

1079


How delete all data from all tables in sql?

946


Write the order of precedence for validation of a column in a table? I. Done using database triggers. Ii. Done using integarity constraints

1074


What is sql used for?

1124