how to find the second highest salary from emp table?
Answer Posted / krishna kishore
select top 1 salary from emp where salary in
(select top 2 salary from emp order by salary desc)
order by salary
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the different set operators available in sql?
How is a PL/SQL code compiled?
what is query cache in mysql? : Sql dba
What are the two different parts of the pl/sql packages?
Show the cursor attributes of pl/sql.
What is the difference between having and a where in sql?
What is partition by in sql?
How to write a single statement that concatenates the words ?hello? And ?world? And assign it in a variable named greeting?
How do you optimize a stored procedure in sql?
how to see the create table statement of an existing table? : Sql dba
How to run sql*plus commands in sql developer?
What is the use of procedures?
What is secondary key?
What operators deal with null?
What is right join sql?