how to find nth highest salary
Answer Posted / kiran k s
select distinct(salary) from table t1
where 4=(select count(distinct(salary))from table t2
where t2.salary >= t1.salary);
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to change the ownership of a schema in ms sql server?
Explain Geometry datatype in sql server 2008 with example
What is enhanced database mirroring in sql server 2008?
How to edit table in sql server 2017?
You accidentally delete the msdb database what effect does this have on your existing sql databases, and how do you recover?
What is sqlservr.exe - process - sql server (sqlex?press)?
Name few endpoints exposed by ssrs 2012?
What the different components of Replication and what is their use?
How to create new table with "create table" statements?
Can group by and orderby be used together?
What are parameterized reports? What are cascading parameters in ssrs reports?
What is difference between drop truncate and delete?
How to modify the underlying query of an existing view?
What is normalization? Explain its different types?
What are three ways you can use an identity value inside a trigger? Why would you prefer one way over another?