how to find nth highest salary
Answer Posted / aman kaushal
select salary from customer order by salary desc limit n,1;
here n is the array value 1st highest value starts with 0
value and then 1.
e.g
find the 2nd highest salary.
select salary from customer order by salary desc limit 1,1;
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is a primary key?
What are trace flags and mention a few common trace flags used with sql server?
What happens if null values are involved in boolean operations?
Delete duplicate rows without using rowid.
What is an etl file?
What new data source types were added in ssrs 2014?
Explain primary key?
what is blocking? : Sql server database administration
Explain about link server in sql server?
What are the benefits of normalization?
What is the recovery model?
what are the types of indexes? : Sql server database administration
What is data mart? : sql server analysis services, ssas
What is the minimum recommended amount of ram for sql server 2012 enterprise?
How can we solve concurrency problems?