find out the third highest salary?
Answer Posted / mihir nasikkar
Here n is 3
SELECT TOP 1 salary
FROM (
SELECT DISTINCT TOP n salary
FROM employee
ORDER BY salary DESC) a
ORDER BY salary
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Which are the five query types available in oracle?
How many data types are supported?
How to run create database statement?
How to insert a new row into a table in oracle?
How would you begin to troubleshoot an ORA-3113 error?
Explain the use of show option in imp command.
How do I know if oracle client is installed on windows?
How to retrieve data from an explicit cursor?
How to create a new oracle data file?
what are bitmap indexes? How does they work?
You have found corruption in a tablespace that contains static tables that are part of a database that is in NOARCHIVE log mode. How would you restore the tablespace without losing new data in the other tablespaces?
src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));
Can any one explain me when i execute below query.. select months_between('07-JUL-12','10-FEB-12') from dual; Out put:- 4.90322581 How oracle calculate?
Where do we use decode and case statements?
What is analyze command used for?