write query for fourth maximum salary from employee table

Answer Posted / icedrop

 select top 1 salary from (select distinct top 4 Salary from tablename order by salary desc ) result order by salary 

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is primary key and example?

700


What are the types of database schema? : sql server analysis services, ssas

783


We need to perform what steps in the following order to work with a cursor?

911


How is a full-text index updated?

700


What is sql server query analyzer?

709






Where does the copy job runs in the log shipping primary or secondary? : sql server database administration

766


What are the basic functions for master, msdb, model, tempdb databases?

784


Can You Use Data Mining Models In Ssrs?

115


Difference between 2NF &3NF ?

843


What kind of problems occurs if we do not implement proper locking strategy?

1141


What do you mean by stored techniques? How would we use it?

765


Define outer join?

748


What action plan is preferred if sql server is not responding?

766


What is acid db?

669


What is the recovery model?

723