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
what is the maximum length of a table name, database name, and fieldname in mysql? : Sql dba
What is faster join or subquery?
what is self join and what is the requirement of self join? : Sql dba
What is sql character function?
What are sql injection vulnerabilities?
What is schema in sql example?
what does it mean to have quoted_identifier on? : Sql dba
How to change sql*plus system settings?
how do you control the max size of a heap table? : Sql dba
Why is the cursor important?
What are types of joins?
What does data normalization mean?
What is pivot in sql?
What is break?
How to get unique records from a table?