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

select top(1) a.salary
from

(
select top(2)sal
from
employee
order by salary desc
)a
order by a.salary asc

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use joins?

1101


How many types of primary keys are there?

1082


What is sql and its types?

1254


Define sql delete statement.

1067


What are the events on which a database trigger can be based?

1246


Can a trigger call a stored procedure?

1129


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

1092


What's the difference between inner join and left join?

1041


Why function is used in sql?

992


What are the ways on commenting in a pl/sql code?

1206


Where not exists in sql?

1032


How to get each name only once from an employee table?

1161


what is 'mysqldump'? : Sql dba

1169


Which nosql database is best?

1025


how to create a new table by selecting rows from another table in mysql? : Sql dba

1168