how to find nth highest salary
Answer Posted / vishal patel
with cte as (
SELECT ROW_NUMBER() 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 | 0 No |
Post New Answer View All Answers
How to add a new column to an existing table with "alter table ... Add" in ms sql server?
What is cursor in ms sql server?
What are sparse columns?
How do I debug a stored procedure in sql server?
What is the difference between commit and rollback?
How to create a large table with random data for index testing in ms sql server?
How to how to convert numeric expression data types using the convert() function??
How to return the second 5 rows in ms sql server?
What is normalization? What number of normalization shapes are there?
Where are stored procedures in sql server?
Can you force a query to use a specific index?
Tell me what are cursors and when they are useful?
What is a result set object returned by mssql_query()?
What do you mean by collation recursive stored procedure?
Can two different columns be merged into single column? Show practically?