how to find the second highest salary from emp table?

Answer Posted / bipin

use this query. it works great.

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

Is This Answer Correct ?    415 Yes 59 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I view a procedure in sql?

541


What is the difference between left outer join and left join?

503


How subquery works in sql?

533


Are pl sql variables case sensitive?

589


What are sql functions? Describe in brief different types of sql functions?

480






What is sql dialect?

518


What makes a good primary key?

513


What is embedded sql in db2?

499


What is write ahead logging in sql server?

554


What is the difference between the sql*loader and import utilities? : aql loader

589


what is a scheduled jobs or what is a scheduled tasks? : Sql dba

539


What are system versioned tables?

542


How is a process of pl/sql compiled?

589


what is a primary key? : Sql dba

547


Is sql microsoft?

537