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

what are the limitations of identity column? : Transact sql

1162


Why we use sql profiler?

1023


Can sql function call stored procedure?

1074


What is difference between inner join and cross join?

1019


what is commit? : Sql dba

1125


what are the non-standard sql commands supported by 'mysql'? : Sql dba

1176


How do you go back in sql?

1029


how to get help information from the server? : Sql dba

989


explain the delete statements in sql

1137


How subquery works in sql?

1129


Is like operator in sql case sensitive?

1077


what is “go” in t-sql? : Transact sql

1158


What are literals in sql server?

1259


What are the query optimization techniques?

1000


What is gpt format?

992