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
How many types of keys are there in sql?
What is pl sql and why it is used for?
How do I view a table in sql?
Is ms sql traffic encrypted?
What is the use of count (*) in sql?
Can variables be used in sql statements?
Explain what is a column in a table?
Explain character-manipulation functions?
What is the difference between having clause and where clause?
Explain constraints in sql?
What are the different types of database management systems?
Can you call pl/sql package functions from within a fast formula?
What is difference between function and trigger?
How many types of triggers exist in pl/sql?
Why is a trigger used?