how to find the second highest salary from emp table?
Answer Posted / manvar prajesh
select top 1 name,salary from emp where salary<(select
max(salary) from emp)order by salary desc
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is rank dense_rank and partition in sql?
explain the options of myisamchk to improve the performance of a table. : Sql dba
what are the advantages of using stored procedures? : Sql dba
What are tables and fields?
What is left join in postgresql?
What is synonyms?
What is mdf ldf and ndf?
What is duration in sql profiler trace?
Is not null in sql?
How many columns should be in an index?
what is the difference between group by and order by in sql? : Sql dba
What are pl/sql cursor exceptions?
What is the primary key?
what's the difference between a primary key and a unique key? : Sql dba
What is an emotional trigger?