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,
modelyr_id_int
from
employee
) a
where
rnk = 4

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

You want to implement the one-to-many relationship while designing tables. How would you do it?

514


What is msdb database? : SQL Server Architecture

545


Explain how would you store your query in an SSRS report or a Database server?

90


What do you mean by data integrity?

604


How to store and query spatial data?

564






How to choose all records from the table?

659


Once setting replication, can you have distributor on sql server 2005, publisher of sql server 2008?

599


What are the purposes of floor and sign functions?

545


What is log shipping?

564


How to use linked server?

598


What are the differences in Clustering in SQL Server 2005 and 2008 or 2008 R2?

600


What is the difference between web edition and business edition?

89


What is acid properties?

597


Which data type columns are the best candidates for full-text indexing?

608


What is postgresql server?

516