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


how to get top two salaries from employee tables

Answers were Sorted based on User's Feedback



how to get top two salaries from employee tables..

Answer / rituparna

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

Is This Answer Correct ?    10 Yes 3 No

how to get top two salaries from employee tables..

Answer / maruti

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

with this query u ll get second largest sal of that table
if u want to know max (sal) then it ll be...
select Max(sal)
from emp;

Is This Answer Correct ?    4 Yes 0 No

how to get top two salaries from employee tables..

Answer / varu

This will be right answer for the query

Select * from empsal e where 2<=(select count(*) from empsal f
where e.sal>f.sal) order by sal desc

Is This Answer Correct ?    4 Yes 0 No

how to get top two salaries from employee tables..

Answer / charan

hi this is charan,
select e1 *from employees e1
where 2>
( select column(distincte2.sal)
where e2.sal>e1.sal )

Is This Answer Correct ?    4 Yes 1 No

how to get top two salaries from employee tables..

Answer / shiva - e-softsys

SELECT MIN (SALARY) FROM EMP WHERE

SALARY IN (SELECT DISTINCT TOP 2 SALARY FROM EMP ORDER BY
SALARY DESC)

Is This Answer Correct ?    4 Yes 1 No

how to get top two salaries from employee tables..

Answer / usha

select top 2 salary from employee order by desc

Is This Answer Correct ?    3 Yes 1 No

how to get top two salaries from employee tables..

Answer / rajendra prasad reddy penumall

this is a SQL query

SELECT DISTINCT salary FROM employee WHERE(max(salary))

Is This Answer Correct ?    3 Yes 3 No

how to get top two salaries from employee tables..

Answer / satya

Hi,

Select * from emp e where 2>=(select count(*) from emp e
where sal>e.sal) order by desc sal.

Let me know if this query is wrong.

Is This Answer Correct ?    2 Yes 2 No

how to get top two salaries from employee tables..

Answer / sivaprasad

SELECT MIN(SALARY) FROM EMP WHERE SALIN(DISTINCT TOP2
SALARY FROM EMP ORDER BY SALARY DESC.

OR
SELECT TOP 2 SALARY FROM EMP ORDER BY SALARY DESC.

Is This Answer Correct ?    2 Yes 2 No

how to get top two salaries from employee tables..

Answer / varu

writing this way is also correct

select sal
from empsal
where id > 2
order by sal desc

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Manual Testing Interview Questions

What is the difference between Client server and web based systems?

2 Answers  


What is P.M Round? What type of questions are they asking? ? If know anybody Plz Post to my mail ID (SwetharaoQA@rediffmail.com) Thank U

2 Answers  


where did u gather requirements? what is user acceptance testing? in real time plz send me as early as possible?

2 Answers   CTS,


What is the difference between Developer and programmer?

13 Answers   Tech Mahindra,


What is the Regression Testing Process followed in your company?

3 Answers   HCL,


Explain Automation Vs Manual Testing?

1 Answers   Crea,


What are different types of metrics used in testing ?

1 Answers  


how to indentify memory leakages after the build

0 Answers  


hi ,, what is testing methodologies ,and what is test strategy pls tel me ... advance thanks for all

2 Answers   Synergy,


i am in a small size software house join as a Jnr. software Testing Engineer so here is project is on Coding and almost finished stage, no Test cases or any QA activities done b4 now can any body explain me how can i continue... m realy depresd coz m just doing manual testing by running the process n m good in this phase but i wanna know abt is QA is just doing that way....plz help me

2 Answers  


1.how you know all test cases are cover in one application? 2.what is difference between error message and warning message ? 3.what are the items comes under traceabily materix?

7 Answers   iSoft,


Hello every one.I want to learn Manual Testing. I'm new to Testing.can anyone send me Manual testing books or any free download links?

1 Answers  


Categories