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
Why truncate is ddl command?
hi, the following are the outputs of sp_spaceused and sp_tempdbspace sp_spaceused ------------ database size unallocated size tempdb 77752.95 MB 28026.99 MB sp_tempdbspace ------------- database size spaceused tempdb 77752.945312 1.007812 the unused space in sp_spaceused is nearly 28 Gb and in sp_tempdbspace is nearly 76 Gb cany any one explain about this output and why its giving different results.
How does stuff differ from the replace function?
What is normalization and its types?
Can select statements be used on views in ms sql server?
What is factless fact table? : sql server analysis services, ssas
explain different types of cursors? : Sql server database administration
How do I find the size of a sql server database?
Can we insert data if clustered index is disabled?
How to disable triggers using "disable trigger"?
How do you delete a data source?
What is reference section?
What is GUID in sql server?
Explain how to maintain a fill factor in existing indexes?
What is the difference between mysql and sql server?