how to find the second highest salary from emp table?

Answer Posted / arvind

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

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the advantages and disadvantages of cascading style sheets? : Sql dba

544


What is sqlca in powerbuilder?

556


what are the types of subquery? : Sql dba

584


Define join and name different types of joins?

511


what are myisam tables? : Sql dba

543






What are the different type of joins in sql?

537


how to check myisam tables for errors? : Sql dba

592


What is localdb mssqllocaldb?

608


Write a sql query to get the third highest salary of an employee from employee_table?

630


Is sql pronounced sequel or sql?

732


What's the procedure?

486


Enlist the characteristics of pl/sql?

1235


What is not equal in sql?

503


which tcp/ip port does sql server run on? : Sql dba

513


What is microsoft t sql?

489