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 row-level compre?
you have a table with close to 100 million records recently, a huge amount of this data was updated now, various queries against this table have slowed down considerably what is the quickest option to remedy the situation? : Sql server administration
What is the recovery model?
Explain what are the authentication modes in sql server?
Where is my database stored on the hard disk in ms sql server?
What different steps will a sql server developer take to secure sql server?
What do you understand by the data quality services in sql server?
How to loop through result set objects using odbc_fetch_row()?
How to connect ms access to sql servers through odbc?
How to disable a login name in ms sql server?
Define tempdb database?
What is the purpose of the tempdb database?
What is format parameter in ssrs?
Does partitioning improve performance sql server?
What are different types of constraints?