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
What’s the use of custom fields in report?
What purpose does the model database server?
What is difference between aggregate and analytic function?
Please illustrate physical database architecture? : SQL Server Architecture
Explain the difference between primary keys and foreign keys?
What is a transactions?
How do you debug a procedure in sql server?
What is subquery explain with example?
What is the difference between SQL notification and SQL invalidation?
What is the difference in accessing db between sql server vs sql azure?
How to view existing indexes on an given table using sys.indexes?
What is the use of partition by in sql server?
What is triggers and stored procedures?
How to delete multiple rows with one delete statement in ms sql server?
What are the requirements for sql server 2016?