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 are the two modes of authentication in sql server?
What is coalesce and check constraint in sql server?
What is difference between stored procedure and user defined function?
What is dknf in normalization form?
How to create a trigger for insert only?
How to query multiple tables jointly?
Which tcp/ip port does the sql server run on? How can it be changed?
Explain rdbms?
List all types of constraints in sql server?
How is SQL Azure different than SQL server?
Explain primary key?
How do you maintain database integrity where deletions from one table will automatically cause deletions in another table?
What are sp_configure commands and set commands?
Why use “nolock” in sql server?
how you can move data or databases between servers and databases in sql server? : Sql server administration