how to calcuate the second highest salary of he employee

Answer Posted / shailesh

select sal from emp where sal=(select max(sal) from emp
where sal<(select max(sal) from emp);

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Compare sql & pl/sql

612


Is sql an operating system?

545


How to add, remove, modify users using sql?

560


What is the most restrictive isolation level? : Transact sql

557


Which are the different character-manipulation functions in sql?

549






What is sql mysql pl sql oracle?

576


What is the difference between having clause and where clause?

572


What are the different set operators available in sql?

565


Why cross join is used?

637


What are types of indexes in sql?

539


How do I restart sql?

526


What is primary key secondary key alternate key candidate key?

546


Explain the working of foreign key?

551


what is the difference between where clause and having clause? : Sql dba

542


Is there a pl/sql pragma similar to deterministic, but for the scope of one single sql select?

535