how to find the second highest salary in a given table????
Answer Posted / shahnaz
To find the 2nd highest salary from emp table:
select max(sal) from emp where sal not in (select max(sal)
from emp )
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
How to use "if" statements on multiple conditions?
What is the recommended interval at which to run statspack snapshots, and why?
Briefly explain what is literal? Give an example where it can be used?
How to change program global area (pga) in oracle?
What is a database schema in oracle?
what are bitmap indexes? How does they work?
What is raw datatype in oracle?
What are the ways tablespaces can be managed and how do they differ?
How to delete a user account in oracle?
How to assign values to data fields in record variables?
How to define an anonymous procedure with variables?
How will you differentiate between varchar & varchar2?
If any one has information regarding interview of NIC (National Informatics Centre),it would be of great help...
How would you go about verifying the network name that the local_listener is currently using?
What is the difference between primary key and unique key and foreign key in oracle?