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
What is Command line parameters in PLSQL.?
How do you trace the traffic hitting a sql server?
What is a fan-out query in SQL Azure?
List the various tools available for performance tuning?
What type of locking occurs during the snapshot generation? : sql server replication
what are the steps you will take to improve performance of a poor performing query? : Sql server database administration
List all the types of user-defined functions?
Explain what are magic tables in sql server?
what is the difference between writing data to mirrored drives versus raid5 drives. : Sql server administration
What is history table in sql server?
What is difference between getdate and sysdatetime in sql server 2008?
Explain transaction server auto commit?
Are resultset updatable?
What is sql server profiler?
How to use copy and concatenate commands in SQL?