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 are the important architecture components of SSRS?
What is amo? : sql server analysis services, ssas
What is normalization? Explain its different types?
What is the use of RDBMS?
Define views.
I have triggers,views,functions,stored Procedures for a table. When I am dropping that table which objects are deleted?
Explain security with sql azure?
What is report snapshot?
What are information schema views?
how many type of indexing in database?
Differentiate between SQL and ORACLE joins and write their syntax.
When would you use sql joins?
Define Wed Edition in SQL Azure?
What are types of storage modes? : sql server analysis services, ssas
What are the options which must be set to allow the usage of optimistic models?