how to find the second highest salary from emp table?
Answer Posted / vijay shegokar
select * from employee where salary=(select max(salary) from
employee where salary not in (select max(salary) from
employee));
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what is offset-fetch filter in tsql? : Transact sql
What is difference between sql and oracle?
When can we use the where clause and the having clause?
How to run sql*plus commands in sql developer?
Can there be 2 primary keys in a table?
how can we find the number of rows in a table using mysql? : Sql dba
How many sql statements are used?
what is acid property in database? : Sql dba
What is output spooling in sql*plus?
Can we insert data in view?
How to run sql statements with oracle sql developer?
What is lookup table in sql?
How do I find duplicates in sql?
What are %type and %rowtype for?
When is the explicit cursor used ?