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 partitioned views and distributed partitioned views?
What is raiseerror? What is raiseerror?
Define Business Edition in SQL Azure?
Define views.
Tell me in brief how sql server enhances scalability of the database system?
Using the customer, and order table in northwind database, please write a query to produce xml?
How secure is sql server database?
What is a transact-sql statement batch in ms sql server?
You want to implement the one-to-many relationship while designing tables. How would you do it?
Why we should not use triggers?
How to handle error or exception in sql?
If a stored procedure is taking a table data type, how it looks?
What are the various editions of sql server 2017 that are available in the market?
Explain what is scheduled job and how to create it?
Which data types generate inaccurate results if used with an = or <> comparison in a where clause of a sql statement?