how to find nth highest salary
Answer Posted / sunil patel
with cte as (
SELECT DENSE_Rank() OVER(PARTITION BY ecc_dm_id_dep ORDER
BY ecc_gross_simple DESC) AS RowID,
*
FROM emp_curr_company
)
SELECT *
FROM cte
WHERE RowID = 2
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is BLOCK statements in SQL?
Data is not being delivered to subscribers, what can be the possible reasons? : sql server replication
Can You Use A Stored Procedure To Provide Data To An Ssrs Report?
What action plan is preferred if sql server is not responding?
What is triggers and its types?
Does an index slow down updates on indexed columns?
Tell me about joins in database system and explain each in detail.
What is normalization process?
What is store procedure? How do they work?
What is acid db?
What is the use of for clause?
How can I track the changes or identify the latest insert-update-delete from a table?
How do I create a trace in sql server?
What is the purpose of the model database?
Why I am getting "the microsoft .net framework 2.0 in not installed" message?