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 / mark berlin

-- Solution #3
select distinct salary from (
select salary,
RANK() OVER (order by salary desc NUlls last) as RRANK
FROM employees
)
Where RRANK = 2;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you change a value in sql?

1011


What is the most important ddl statements in sql are?

991


What is coalesce sql?

993


what is a control file ? : Sql dba

1032


What view means?

975


how to escape special characters in sql statements? : Sql dba

1033


Where is pl sql used?

949


Explain locks? : Transact sql

997


How do you delete a table?

1067


How to revise and re-run the last sql command?

1159


What is the difference between alter trigger and drop trigger statements?

1099


What are the benefits of pl sql?

1115


How to write a query to show the details of a student from students table whose

992


Can we connect to postgresql using sql developer?

998


Is sql free?

953