how to find the second highest salary from emp table?

Answer Posted / jithu

SELECT MAX(SALARY) FROM EMPLOYEE WHERE SALARY NOT IN
(SELECT MAX(SALARY) FROM EMPLOYEE)

Is This Answer Correct ?    9 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to calculate the difference between two dates? : Sql dba

546


Is sql between inclusive?

587


write an sql query to find names of employee start with 'a'? : Sql dba

575


Is record in pl sql?

513


What is sql table?

520






What are character functions?

628


What does the hierarchical profiler does?

566


Mention what pl/sql package consists of?

535


What does seeding a database mean?

525


What are the usages of sql?

563


How do I find duplicates in a single column in sql?

534


Can we use joins in subquery?

531


How do I run sql?

610


What are the two parts of design view?

579


What is aggregate function in sql?

530