How to find 6th highest salary from Employee table ?
Answer Posted / vj
with cte as
(
select dense_rank() over (order by salary desc)
maxSal ,* from Employee )
select * from cte where maxSal=6
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is sql server profiler trace data file?
What are the types of ssrs?
What is the maximum size of sql server database?
How to create a new schema in a database?
Retrieve the unique rows from table without using UNIQUE and DISTINCT keywords.
Write an SQL query to obtain the 2nd highest salary.
Explain what is lock escalation?
What is a natural primary key?
List the types of recovery model available in sql server?
Why olap is used?
Explain cursor as data base object?
What is data compression? : sql server database administration
Give the query of getting last two records from the table in SQL SERVER?
Why use “nolock” in sql server?
What is the default fill factor value?