how to find nth highest salary
Answer Posted / smitam
select top 1 salary from emp where (salary<(select max
(salary) from emp ))ORDER BY salary DESC
| Is This Answer Correct ? | 9 Yes | 21 No |
Post New Answer View All Answers
What is the architecture of ms sql reporting service?
What is star, snowflake and star flake schema? : sql server analysis services, ssas
How to include date and time values in sql statements?
Why should one not prefix user stored procedures with ‘sp_’?
What is use of except clause?
What is the report builder?
How to create new tables with "create table" statements in ms sql server?
What is log cache in sql server?
What stored procedure would you use to view lock information?
What is transaction server isolation?
What are approximate numeric data types in ms sql server?
Explain the difference between function and stored procedure?
What are three ways you can use an identity value inside a trigger? Why would you prefer one way over another?
Is sql server 2016 free?
What are filegroups in sql server?