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 Java Pool in Oracle?
Explain the use of indexes option in exp command.
What is the difference between pre-select and pre-query?
Can we call procedure inside function in oracle?
What is the database name in oracle?
What is oracle database client?
various types of hints and their usage
How to convert a date to char in oracle? Give one example.
Explain rename?
Calculate difference between 2 date / times in oracle sql?
What is an oracle?
How to use values from other tables in update statements using oracle?
What is logical backup in oracle?
What are the four Oracle system processes that must always be up and running for the database to be useable?
How to insert a new row into a table in oracle?