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
What is an index in sql with example?
How do you create a unique index?
What is PL/SQL Records?
What is ttitle and btitle?
When you have to use a default "rollback to" savepoint of plvlog?
What is $$ in sql?
How do I remove sql developer from windows 10?
what are the advantages a stored procedure? : Sql dba
How to select random rows from a table?
what is dbms? : Sql dba
How does postgresql compare to mysql?
how many values can the set function of mysql take? : Sql dba
What do you understand by pl/sql packages?
how to shutdown mysql server? : Sql dba
Enlist the advantages of sql.