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...

Write a query to get 2nd maximum salary in an employee table ?

Answer Posted / deven

select top 1 salary from emp where salary <>(
select top 1 salary from emp order by salary desc) order by
salary desc

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a table partition?

1136


What are inner and outer joins examples of both?

965


How can you load microsoft excel data into oracle? : aql loader

1174


How exception is different from error?

1022


How can I change database name in sql?

1087


Should I use mbr or gpt?

1026


Explain two easy sql optimizations.

1016


What is dml statement?

961


What are the set operators in sql?

1076


What is difference between cursor and trigger?

1083


what is the difference between truncate and drop statements? : Sql dba

1127


explain the difference between delete , truncate and drop commands? : Sql dba

1096


Do we need commit after truncate?

1087


Why do we use sqlite?

985


What kind of join is join?

975