write query for fourth maximum salary from employee table

Answer Posted / ilgian

select min(salary)
from (
select top 4 *
from employees
order by salary desc
) as a

Is This Answer Correct ?    24 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we check locks in database? If so, how can we do this lock check?

533


What is collation sensitivity? Explain different types.

550


Explain try...catch with sql server?

604


How do you start single user mode in clustered installations?

527


What is the new security features added in sql server 2016? : sql server security

623






Do you know how to store and query spatial data?

611


Types of Authentications in Sql Server? How user gets authenticated through windows authentication?

573


What options are there to delete rows on the publisher and not on the subscriber? : sql server replication

685


Explain insert into select statement?

529


Explain about system database?

584


Do you know what are the differences between lost updates and uncommitted dependencies?

547


How to store and query spatial data?

564


What is de-normalization and what are some of the examples of it?

539


what is the difference between Tabular and Matrix report?

124


How to delete duplicate records based on single column from a table?

606