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 / swapnil tikale

Select top 1 salary from (select distinct top 2 salary from employee order by salary desc) as sal order by salary ;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what happens if you no create privilege in a database? : Sql dba

940


Why truncate is used in sql?

938


What is scalar and vector?

940


When a dml statement is executed, in which cursor attributes, the outcome of the statement is saved?

1047


What is difference between pl and sql?

994


What is the difference between partitioning and sharding?

950


What are transaction and its controls?

968


Why are sql stored procedures used?

990


What is write ahead logging in sql server?

990


What are inner and outer joins examples of both?

881


Explain what is a subquery ?

1125


what is a materialized view? : Sql dba

999


What is exit statement?

959


Which function is used to return remainder in a division operator in sql?

1076


What is posting?

990