how to find the second highest salary from emp table?

Answer Posted / naveen r kumar

SELECT Max(salary) FROM TABLE
WHERE salary NOT IN (SELECT Max(salary) FROM 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 a subquery in sql?

512


What is a database? Explain

598


How many types of indexes are there in sql?

538


What is procedure and function in sql?

536


What is hibernate and its relation to sql?

594






What is dynamic query?

542


Why plvtab is considered as the easiest way to access the pl/sql table?

624


Will truncate release space?

519


what are different types of keys in sql?

608


list out some tools through which we can draw e-r diagrams for mysql. : Sql dba

513


What is sqlerrd?

528


What is database sql?

545


How to use transactions efficiently : transact sql

550


Is sql considered coding?

572


What is difference between sql and mysql?

537