how to find the second highest salary from emp table?
Answer Posted / ayush
select *
from (select ename,empno,salary,dense_rank()over(order by
salary desc) rank from emp)
where rank =2
| Is This Answer Correct ? | 19 Yes | 11 No |
Post New Answer View All Answers
how to rename an existing table in mysql? : Sql dba
What is the difference between delete and truncate commands?
what is the difference between ereg_replace() and eregi_replace()? : Sql dba
what are the differences among rownum, rank and dense_rank? : Sql dba
explain normalization concept? : Sql dba
Should I use mbr or gpt?
What jobs use sql?
what is “go” in t-sql? : Transact sql
What are procedures used for?
What is pl sql package?
What is scalar function?
Is there any restriction on the use of union in embedded sql?
Why we use pl sql?
What is query optimization in sql?
What has stored procedures in sql?