how to find the second highest salary from emp table?
Answer Posted / vinodkumar
select *from(select *from emp orderby sal desc)where
ronum<=2 minus select *from (select *from emp order by sal
desc ) where rownum<=1;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is the difference between delete and truncate commands? : Sql dba
What are database links used for?
Explain what is a database?
What is group by in sql?
Explain isolation levels. : Transact sql
What is pivot table in sql?
What are the advantages of indexing?
what is meant by nl2br()? : Sql dba
How to write a single statement that concatenates the words ?hello? And ?world? And assign it in a variable named greeting?
What is the difference between alter trigger and drop trigger statements?
what is the difference between union and union all? : Sql dba
Write the command to remove all players named sachin from the players table.
What is pl/sql table? Why is it used?
what is the difference between group by and order by in sql? : Sql dba
How to add a column ‘salary’ to a table employee_details?