how to find the second highest salary from emp table?
Answer Posted / dev anand s
select salary from (
select salary, dense_rank() over(order by salary desc) rank from emp) where rank=2;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can I create table without primary key?
What is clustered and nonclustered index in sql?
How to avoid using cursors? What to use instead of cursor and in what cases to do so?
What is trigger in pl sql?
What packages(if any) has oracle provided for use by developers?
Why left join is used in sql?
What is sql query optimization?
What is the use of sqldataadapter?
What are the uses of merge?
what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba
Explain the types of joins in sql?
what is oltp (online transaction processing)? : Sql dba
What is the process of copying data from table a to table b?
Can we call dml statement in function?
GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?