how to find the second highest salary from emp table?

Answer Posted / anantkreshna v

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

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is normalization in a database?

605


What are the possible values for the boolean data field?

515


What is sql data?

542


What is record variable?

545


Which command is used to delete a trigger?

768






how can we find the number of rows in a table using mysql? : Sql dba

575


What is union and union all keyword in sql?

563


What are views in sql?

538


How do I order columns in sql?

523


What is pessimistic concurrency control? : Transact sql

584


What is meant by <> in sql?

501


what are the properties and different types of sub-queries? : Sql dba

502


what is the difference between delete and truncate statement in sql? : Sql dba

541


Are stored procedures faster than queries?

520


What is sql catalog?

555