Find out the 3rd highest salary?
Answer Posted / nikhilesh roy
WITH
CTE as
(select emp_id,salary,rn=row_number() over (order by salary desc) from emp_table )
select * from CTE where rn=3;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are three advantages to using sql?
Why cannot I use bind variables in ddl/scl statements in dynamic sql?
What is mutating trigger?
Is primary key clustered index?
What does 0 mean in sql?
What is a scalar value in sql?
What is the difference between instead of trigger and after trigger?
What is a database trigger?
What is a system versioned table?
What is nvarchar max in sql?
what are the advantages of sql ? : Sql dba
How can I get the number of records affected by a stored procedure?
how to escape special characters in sql statements? : Sql dba
What are the different ddl commands in sql?
What are schema-level triggers?