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

select top 1 salary from t1 where salary in(select top 2
salary from t1 order by salary desc)order by salary asc

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does rowid help in running a query faster?

1416


write an sql query to find names of employee start with 'a'? : Sql dba

1024


How many disk partitions should I have?

984


What version is sql?

1022


Is there a pl/sql pragma similar to deterministic, but for the scope of one single sql select?

1013


explain advantages of innodb over myisam. : Sql dba

1126


What is pl sql script?

1026


How to use sql statements in pl/sql?

1116


Who is the owner of mysql database?

1057


what are the type of locks ? : Sql dba

962


Enlist the data types that can be used in pl/sql?

1065


What is clustered index in sql?

1051


What is compound trigger?

1034


Why do we need cursor in pl sql?

1132


What are some emotional triggers?

981