write query for fourth maximum salary from employee table
Answer Posted / anish tuladhar
select
distinct salary
from
(
select
DENSE_RANK() over(order by salary desc) as rnk,
salary
from
employee
) a
where
rnk = 4
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the different types of sql server replication? : sql server replication
How to optimize stored procedure optimization?
What is recompile sql server?
What is user-defined function?
What are the requirements on sql server network connections?
What is extent? Types of extents?
How to use union to merge outputs from two queries together in ms sql server?
Why and when do stored procedure recompile?
How do you improve the performance of a SQL Azure Database?
Explain the Ways to improve the performance of a sql azure database?
What is a join in sql? What are the types of joins?
what is the difference between count(*) and count(1) ?
How to create indexed view?
Define cursor locking
How to drop an existing schema in ms sql server?