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

Why we use sql profiler?

963


Can we join 3 tables in sql?

1049


Is and as keyword in pl sql?

963


how to drop an existing view in mysql? : Sql dba

1062


what is a cursor? : Sql dba

1029


tell me about various levels of constraint. : Sql dba

1035


How do I find duplicates in the same column?

1100


explain what is mysql? : Sql dba

1088


Is delete faster than truncate?

1006


What does fetching a cursor do?

1096


what is a database lock ? : Sql dba

1175


How insert into statements in sql?

1081


what is cross join? : Sql dba

1004


What are the benefits of triggers?

1175


Why is a trigger used?

947