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 the difference between numeric and autonumber?
What is the difference between the implicit and explicit cursors?
Is sql an operating system?
What program will open a mdb file?
What is pl sql and why it is used for?
How many joins in sql?
how to include numeric values in sql statements? : Sql dba
what is the difference between rownum pseudo column and row_number() function? : Sql dba
What is the best sql course?
Explain architecture of sql server notification services?
What is the purpose of cursors in pl/sql?
What is over () in sql?
How does cross join work?
What is your daily office routine?
what are integrity rules?