how to find nth highest salary
Answer Posted / dewashish kumar pal
select salary from tablename t where (n-1)= (select count(*) from tablename where salary > t.salary);
note:- t = tablename
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
If you are given access to a SQL Server, how do you find if the SQL Instance is a named instance or a default instance?
What are the 7 disadvantages to a manual system?
What is the difference RDBMS and Graph Database?
If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?
What is 2nf normalization?
What are types of scd? : sql server analysis services, ssas
What is filestream?
Explain alternate key, candidate key and composite key in sql server?
How to find table changes in sql server?
What are the differences between having and where clause.
Explain triggers?
How do you make a trace?
Explain error handling in ssis?
How to add more data to the testing table in ms sql server?
between cast and convert which function would you prefer and why?