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
What is output spooling in sql*plus?
What is difference between sql function and stored procedure?
What is delete command in sql?
what is rollback? : Sql dba
what is a table called, if it has neither cluster nor non-cluster index? What is it used for? : Sql dba
What are commit, rollback, and savepoint?
What is a primary key sql?
What is the use of triggers?
What is primary key and foreign key with example?
What are the benefits of stored procedures?
Can I copy :old and :new pseudo-records in/to an oracle stored procedure?
What is sql in oracle?
What are character functions?
What is the difference between local and global temporary table?
What is the left table in sql?