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
mention different types of relationships in the dbms?
Why do we use sql limitations? Which constraints can we use while making a database in sql?
Tell me something about security and sql azure?
What is the maximum size per database for sql server express?
What are different types of views?
Write a query to find 5th highest amount paid from the customer table.
What are the indexes in sql server?
Do you know what is difference between stored procedure and user defined function?
How to return the second 5 rows in ms sql server?
what is the difference between Delete and Truncate command in SQL
Explain different types of self contained sub query?
How to list all schemas in a database?
How do I determine how many instances of sql server are installed on a computer?
Tell me can we use custom code in ssrs?
When is the use of update_statistics command?