how to find the second highest salary from emp table?

Answer Posted / yash goyal

Select Distinct salary
from employees e
where &no-1=(select count(distinct salary )
from employees
where E.salary < salary);

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is mariadb nosql?

588


How do I make sql search faster?

560


What is parallel hint?

754


What are the possible values that can be stored in a boolean data field?

519


What are the basic techniques of indexing?

577






What are different joins used in sql?

558


What is the use of non clustered index?

532


What are the features of pl sql?

567


What port does sql server use?

512


what are the different type of sql's statements ? : Sql dba

523


What is sql deadlock?

569


What is difference between mysql and postgresql?

522


How do I view a procedure in sql?

555


What's the difference between inner join and left join?

518


How do I start pl sql?

497