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 3rd highest salary?

Answers were Sorted based on User's Feedback



Find out the 3rd highest salary?..

Answer / tathagoto

select sal from (select sal from salary order by sal desc)
where rownum <4;

Is This Answer Correct ?    1 Yes 4 No

Find out the 3rd highest salary?..

Answer / santosh

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

Is This Answer Correct ?    0 Yes 3 No

Find out the 3rd highest salary?..

Answer / sachin

select * from ( select * from (select * from emp order by
sal desc)
where rownum<=3
order by rownum desc)
where rownum=1

Is This Answer Correct ?    1 Yes 4 No

Find out the 3rd highest salary?..

Answer / xyz

select a.sal from (select distinct(sal) from emp order by
sal desc)a where rownum=3

Is This Answer Correct ?    2 Yes 7 No

Find out the 3rd highest salary?..

Answer / srijith pillai

This will give you third highest salary

select ename, sal from
(Select name, sal, rownum()Over(Order by sal Desc) rt
FROM emp)
where rt = 3;

Is This Answer Correct ?    13 Yes 19 No

Find out the 3rd highest salary?..

Answer / manoj

SELECT min(salary)
FROM (
SELECT e.salary , ROWNUM
FROM emp e
ORDER BY salary DESC
AND ROWCOUNT <=3
)
ROWNUM =3;

Is This Answer Correct ?    3 Yes 9 No

Find out the 3rd highest salary?..

Answer / umesh naik

select max(amount) from (
select distinct amount from temp123
where rownum <= 3
)

Is This Answer Correct ?    1 Yes 8 No

Find out the 3rd highest salary?..

Answer / s.dineshkumar

Select Top 1 Salary from (Select top 3 Salary from Employee
order by salary desc ) a

Is This Answer Correct ?    0 Yes 7 No

Find out the 3rd highest salary?..

Answer / satya

Hi,

Select sal from emp e where 3>=(select count (Sal)
from emp where sal>e.sal) order by sal desc;

Regards,
Satya.k

Is This Answer Correct ?    23 Yes 35 No

Find out the 3rd highest salary?..

Answer / shaiju nair

select min(sal) from (Select sal
FROM emp where rownum<=3
Order by sal desc)

Is This Answer Correct ?    13 Yes 25 No

Post New Answer

More SQL PLSQL Interview Questions

I am creating an index on Emp table Empno column,if u using this indexed column in ur SELECT stmt. where clause,then how do u know that yr index will be working or nor? Thanks Advance...

3 Answers  


Can we use more than one null value for unique key?

31 Answers   A1 Technology, Wipro,


Can cursors be part of a trigger body?

0 Answers  


How do you pronounce sql?

0 Answers  


How do I know if I have sql express or standard?

0 Answers  


What is a join?

0 Answers  


Why is normalization important?

0 Answers  


Does truncate free space?

0 Answers  


how to return query output in html format? : Sql dba

0 Answers  


Can we write ddl statements in functions?

0 Answers  


Any attempt to navigate programmatically to disabled form in a call_form stack is allowed?

0 Answers  


Does pdo prevent sql injection?

0 Answers  


Categories