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 reportserver and reportservertempdb ?
How retrieve field names from the table in SQL through JAVA code?
How to create function without parameter in sql server?
Define candidate key, alternate key, and composite key.
How to find out the list schema name and table name for the database?
What are the mathematical functions supported by sql server 2005?
What is recompile sql server?
Which language rdl files made of?
Write down the syntax and an example for create, rename and delete index?
Is profiler the only tool that has the ability to audit and identify ddl events? : sql server security
What is the maximum size of a row in sql server?
How to return the date part only from a sql server datetime datatype?
Find first and last day of current month in sql server
What is the difference between system objects and user objects?
What are the different types of normalization?