how to find the second highest salary from emp table?
Answer Posted / anandaraj
This below query is used to get the name and salary of
second highest salary person. Its work great.
select Name, Salary from table_3 where salary = (select max
(salary) from table_3 where salary < (select max(salary)
from table_3 )).
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can a table have no primary key?
what are the different functions in sorting an array? : Sql dba
what is rdbms? : Sql dba
What is sqlcommand?
What are character functions?
What is the basic structure of an sql?
what is the difference between char and varchar data types? : Sql dba
what happens when the column is set to auto increment and you reach the maximum value for that table? : Sql dba
What is the usage of sql functions?
How do I turn a list into a table?
What is set serveroutput on?
what is a database transaction? : Sql dba
Are null values same as that of zero or a blank space?
What are the types of functions in sql?
Can you call pl/sql package functions from within a fast formula?