find out the second highest salary?
Answer Posted / kamal
step 1=write a query for maximum salary.
step 2=make a sub query of step 1
step 2 a)let X==sleect all row from your table(employee)
b)let Y=select maximum salary from employee
NOw c)wrie X-Y
Syntax is:
select MAX(salary) from employeee((select * from
employee)-(selcect MAX(salary) from employee))
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the difference between a hot backup and a cold backup in oracle?
What is pragma autonomous transaction in oracle?
Why do we use coalesce function in oracle?
How many data types are supported?
What is the oracle implicit cursor?
How to create a table index?
What are the differences between interval year to month and interval day to second?
you are a universe designer and report developer in BO, what type of information you gather from client?Briefly explain plz
How to define an external table with a text file?
IS it possible to built the oracle database without setting the kernal parameters?
What's dateware house and what's clustor with practicle example
Explain oracle’s system global area (sga).
What are operators in oracle?
How to connect to the server with user account: sys?
How to create a table interactively?