Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


find out the third highest salary?

Answers were Sorted based on User's Feedback



find out the third highest salary?..

Answer / sanil

select first_name,salary from employees a
where (select count(distinct(salary)) from employees aa
where a.salary<=AA.SALARY) = &n;

Is This Answer Correct ?    0 Yes 5 No

find out the third highest salary?..

Answer / anish nama

select Max(salery) from salery where salery IN( select
top N salery from salery order by salery asc)

Is This Answer Correct ?    1 Yes 6 No

find out the third highest salary?..

Answer / hhh

select * from employee e where 3 = (select
count(distinct(salary)) from employee where e.salary <= salary);

Is This Answer Correct ?    0 Yes 5 No

find out the third highest salary?..

Answer / brijesh

hi,

this query gives you the Nth highest salary, the trick is to
write (N-1) in the given place;

select salary from table as table1

where (n-1) =

(select count(salary) from table

where table1.salary<salary);

Is This Answer Correct ?    0 Yes 6 No

find out the third highest salary?..

Answer / mamta

select rownum as maxsal,sal
from (select sal from emp order by sal desc)
where rownum <4

Is This Answer Correct ?    0 Yes 6 No

find out the third highest salary?..

Answer / amit sutar

select min(salary)

from(select distinct(salary)
from employees
order by salary desc)

where rownum<=5;

Is This Answer Correct ?    1 Yes 7 No

find out the third highest salary?..

Answer / alka

select min(salary)
from(select salary
from emp
order by salary desc
)
where rownum <=3

Is This Answer Correct ?    0 Yes 8 No

find out the third highest salary?..

Answer / tejeswara rao potnuru

Find Out The Nth Highest Salary


SELECT MAX(SAL),LEVEL FROM EMP
WHERE LEVEL=&LEVELNO
CONNECT BY PRIOR SAL>SAL
GROUP BY LEVEL;

Is This Answer Correct ?    0 Yes 8 No

find out the third highest salary?..

Answer / husenaiah.b

select empno,ename,sal from
(select empno,ename,sal from emp order by sal desc)
group by rownum,ename,sal having rownum=&n;
from this query we can find top nth sal

Is This Answer Correct ?    22 Yes 38 No

find out the third highest salary?..

Answer / naveen kumar

Hi everybody,
This is one way to get the third highest salary
select ROWNUM as RANK from (select * from emp order by sal)
where ROWNUM<=3

Is This Answer Correct ?    11 Yes 27 No

Post New Answer

More Oracle General Interview Questions

Can we call a trigger inside a function and function inside a trigger? Give example.

1 Answers   Metric Stream,


What is PL/SQL ?

3 Answers  


One Table having two rows with one colomn having values Like"Male" and "Female". how to upadte these values Like "Female" and "Male" in single update statement.

6 Answers   Polaris,


what are the diffeenes between oracle 9i,oracle 10g

2 Answers  


What is dictionary cache ?

2 Answers  


what is the difference between data migration and production migration.

0 Answers  


How can you tell how much space is left on a given file system and how much space each of the file systems subdirectories take-up?

0 Answers  


what is index?

4 Answers  


How many types of table in Oracle?

0 Answers   MCN Solutions,


What is Data Dictionary Cache in Oracle?

0 Answers   MCN Solutions,


Which of the following is not a database object TABLESPACE TABLE INDEX NONE

1 Answers  


How many anonymous blocks can be defined?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1809)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)