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 / manvar prajesh

select top 1 name,salary from emp where salary<(select
max(salary) from emp)order by salary desc

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 rank dense_rank and partition in sql?

972


explain the options of myisamchk to improve the performance of a table. : Sql dba

950


what are the advantages of using stored procedures? : Sql dba

1059


What are tables and fields?

973


What is left join in postgresql?

995


What is synonyms?

999


What is mdf ldf and ndf?

931


What is duration in sql profiler trace?

1021


Is not null in sql?

927


How many columns should be in an index?

902


what is the difference between group by and order by in sql? : Sql dba

1053


What are pl/sql cursor exceptions?

1036


What is the primary key?

877


what's the difference between a primary key and a unique key? : Sql dba

971


What is an emotional trigger?

930