write query for fourth maximum salary from employee table

Answer Posted / prabhjeet singh sethi

select * from
(select rank(salary) over (partition by employee order by salary desc) as top_salary, employee from table
group by employee)
where top_salary = 4

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know nested transaction?

526


What is explicit mode in sql server?

542


Scalability, Availability, Integration with internet, etc.)?

2443


what method you can use to reduce the overhead of Reporting Services data sources?

155


Which Model uses the SET concept

588






What is CTE in SQL

551


Can you explain about buffer cash and log cache in sql server?

510


How to loop through returning rows?

583


What are the components of sql server service broker?

520


What is the difference between clustered and non-clustered indexes in ms sql server?

499


What is raid, and how it can influence database performance?

586


Do you know what is lock escalation?

594


What is resource governor in sql server?

556


What is the difference between char, varchar and nvarchar?

589


What is user-defined multi-statement table-valued function?

661