how to find the second highest salary from emp table?

Answer Posted / sudha

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

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I find duplicates in sql?

511


Can a select statement fire a trigger?

663


what are the 'mysql' command line options? : Sql dba

561


How do I edit a stored procedure?

559


Which tcp/ip port does sql server run?

540






Can we join two tables without common column?

516


what is schema? : Sql dba

564


What is sql and how does it work?

551


What is meant by temporal data?

546


Why use subqueries instead of joins?

609


what is the difference between truncate and drop statements? : Sql dba

558


What are sql injection vulnerabilities?

500


how to extract a unit value from a date and time? : Sql dba

558


How do I view a sql database?

563


What is dba in sql? : SQL DBA

537