how to find the second highest salary from emp table?

Answer Posted / muhammed zaheer

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

Is This Answer Correct ?    86 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sql deadlock?

562


how to check myisam tables for errors? : Sql dba

595


How is pl sql different from sql?

540


What is the most restrictive isolation level? : Transact sql

554


Can a view be mutating? If yes, then how?

572






Which join is like an inner join?

522


When can we use the where clause and the having clause?

575


What is rownum in sql?

557


what are the different tables present in mysql, which type of table is generated when we are creating a table in the following syntax: create table employee (eno int(2),ename varchar(10)) ? : Sql dba

610


explain advantages of myisam over innodb? : Sql dba

595


Why is sharding used?

550


what is a foreign key ? : Sql dba

605


Why schema is used in sql?

512


How many sql databases can you have on one server?

588


Is sqlite thread safe?

602