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
What is the downside of using udf?
How does using a separate hard drive for several database objects improves performance right away?
What are the purposes and advantages stored procedure?
What are the new features of sql server 2008 r2 reporting service?
How to create sub reports?
How to disable triggers using "disable trigger"?
Explain the disadvantages/limitation of the cursor?
What is the full meaning of dml?
What is 3nf normalization?
What is blocking?
Is the order of columns in the set clause important in ms sql server?
What objects does the fn_my_permissions function reports on? : sql server security
What is database black box testing?
Why do we use sql limitations? Which constraints can we use while making a database in sql?
How to get the definition of a trigger back?