how to find the second highest salary from emp table?

Answer Posted / nevin

select min(salary) from (select top 2 sal from table_name order by sal desc)salary

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the advantages a stored procedure? : Sql dba

553


What are different types of sql?

565


what is index? : Sql dba

558


What is synchronized subquery?

598


Explain what is a database?

652






What is sql not null constraint?

606


How many commands are there in sql?

551


How many postgresql users are there, worldwide?

581


What is microsoft t sql?

490


What is sqlca in powerbuilder?

573


How do I run a sql query in pgadmin 4?

548


Is delete faster than truncate?

552


Difference between truncate, delete and drop commands?

560


how to see the create table statement of an existing table? : Sql dba

528


Why is the cursor important?

543