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...


write a query to find the third maximum salary of a
employee.(table:employ col name:salary)

Answers were Sorted based on User's Feedback



write a query to find the third maximum salary of a employee.(table:employ col name:salary)..

Answer / ravindra

select max(sal) from emp where level=3 connect by prior sal>sal;

Is This Answer Correct ?    3 Yes 0 No

write a query to find the third maximum salary of a employee.(table:employ col name:salary)..

Answer / shrikant

SELECT MIN(sal) FROM emp WHERE
sal IN (SELECT distinct TOP 3 sal FROM emp ORDER BY sal
DESC)

select max(sal) from emp where sal<(select max(sal) from emp
where sal<( select max(sal) from emp));

select * from emp e
where 3 = (select count(sal) from emp
where e.sal < sal);

Select * from EMP_USER A where n-1 = (select count
(distinct (sal)) from EMP_USER B where A.sal<B.sal)

Is This Answer Correct ?    4 Yes 2 No

write a query to find the third maximum salary of a employee.(table:employ col name:salary)..

Answer / saiprasanna

select max(salary) from employ
where salary=(select max(salary) from employ where salary
<(select max(salary) from employ));

Is This Answer Correct ?    5 Yes 3 No

write a query to find the third maximum salary of a employee.(table:employ col name:salary)..

Answer / jithendranath.g

SELECT Z2.SAL FROM EMP Z1,EMP Z2
WHERE
Z2.SAL <=Z1.SAL
GROUP BY Z2.SAL
HAVING COUNT(Z2.SAL)=3

Is This Answer Correct ?    3 Yes 2 No

write a query to find the third maximum salary of a employee.(table:employ col name:salary)..

Answer / neha_gupta

select e.ename,a.sal from (select sal, rownum rnum ,rowid
rid from (select * from emp order by sal desc)) a , emp e
where a.rid= e.rowid
and a.rnum = 3

Is This Answer Correct ?    1 Yes 0 No

write a query to find the third maximum salary of a employee.(table:employ col name:salary)..

Answer / neha_gupta

select ename,sal from (select rownum rnum ,rowid rid from
emp order by sal desc) a , emp e
where a.rnum = 4
and a.rid= e.rowid

Is This Answer Correct ?    0 Yes 1 No

write a query to find the third maximum salary of a employee.(table:employ col name:salary)..

Answer / suresh

Select emp.*,dense_rank()over(order by sal desc) rn from emp
where rn=3;

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Oracle AllOther Interview Questions

Explain how to account for bank charges deducted from amount received against an invoice. : oracle accounts receivable

0 Answers  


HOW TO GET THE ORGANIZATION TO ORGANIZATION DETAILS INFORMATION IN THE INVENTORY MODULE.THE REQUIREMENT IS FROMORG TOORG FROMINV TOINV ..

0 Answers   Infosys,


Difference between negative and positive adjustments : oracle accounts receivable

0 Answers  


What are the mandatory setups in setting up a PO in oracle

1 Answers   Silicon,


A scenario for amount correction & how to use amount correction functionality in AP invoices

0 Answers  


hi all, i have installed oracle xe software in windows 7. iam unable to connect sqldeveloper tool. can you please tell me how to connect. provide completed procedure.

1 Answers  


I've got a database 10g and Form version 5.0 but unable to connect. Does Oracle 10g database supports form 4.5

0 Answers   jusco,


how to write a query without using where? Example- select * from employee where empno=10 I need to write this query without where clause.

1 Answers   Alshaya,


Are These Dff's Flexible?

0 Answers   Oracle,


Where would you look for errors from the database engine?

2 Answers   Fintellix,


How do you add a data file to a tablespace?

1 Answers  


what are all the conversion and interfaces in GL,AP,AR,HRMS with example? otherwise send send link for these

0 Answers   Pathway Technologies,


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)