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 logon trigger?
What is the temp table?
How to compose an inquiry to demonstrate the points of interest of an understudy from students table whose name begins with k?
How to encrypt Strored Procedure in SQL SERVER?
What is snapshot report?
What are extended events in sql server?
Differentiate between SQL and ORACLE joins and write their syntax.
Name some of the open source software that you can use in alternative to SSR?
What is cte (common table expression)?
What is the meaning of resultset type_scroll_insensitive?
Is it possible to import data directly from t-sql commands without using sql server integration services? If so, what are the commands?
Explain about link server in sql server?
What is the difference between varchar and varchar(max) datatypes?
What are the requirements on sql server network connections?
What are key constraints?