how to find the second highest salary from emp table?
Answer Posted / debasish
select ename,sal from (select ename,sal,row_number()
over(order by sal desc)rn from emp)
where rn=1;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why having clause is used in sql?
What is meant by cursor in sql?
What is difference between ms sql and mysql?
What is a unique key and primary key and foreign key?
what are integrity rules?
What are the events on which a database trigger can be based?
What are inner outer left and right joins in sql?
what are properties of a transaction? : Sql dba
What is sql in oracle?
What is cte sql?
Why cannot I use bind variables in ddl/scl statements in dynamic sql?
What are all the different normalizations?
Does view store data in sql?
What version is sql?
how can I make a script that can be bi-language (supports english, german)? : Sql dba