how to calcuate the second highest salary of he employee
Answer Posted / lalit
select name, sal from (select name,sal from emp where sal<(select max(sal) from emp) order by sal desc)where rownum=1;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why do we use procedures in sql?
how many sql ddl commands are supported by 'mysql'? : Sql dba
What is scalar data type in pl sql?
How to select random rows from a table?
Is primary key is clustered index?
Compare sql & pl/sql
Does sql view stored data?
How many types of cursors are available in pl/sql?
Explain raise_application_error.
Why do we use cursors?
what is the difference between blob and text? : Sql dba
Which data type is a composite type?
Where is all the data on the internet stored?
Which is better stored procedure or query?
how to show all tables with 'mysql'? : Sql dba