ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Testing  >>  Manual Testing
 
 


 

 
 Automation Testing interview questions  Automation Testing Interview Questions
 Manual Testing interview questions  Manual Testing Interview Questions
 QA Concepts interview questions  QA Concepts Interview Questions
 Mobile Testing interview questions  Mobile Testing Interview Questions
 Test Cases interview questions  Test Cases Interview Questions
 Test Documents Reporting interview questions  Test Documents Reporting Interview Questions
 Testing AllOther interview questions  Testing AllOther Interview Questions
Question
how to get top two salaries from employee tables
 Question Submitted By :: Maheswar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how to get top two salaries from employee tables
Answer
# 1
this is a SQL query

SELECT DISTINCT salary FROM  employee WHERE(max(salary))
 
Is This Answer Correct ?    2 Yes 1 No
Rajendra Prasad Reddy Penumall
 
  Re: how to get top two salaries from employee tables
Answer
# 2
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 ?    1 Yes 0 No
Satya
 
 
 
  Re: how to get top two salaries from employee tables
Answer
# 3
Hi,
This is suresh.
My answer for that query is

select top 2(salary)from emp order by salary desc
 
Is This Answer Correct ?    1 Yes 2 No
Suresh
 
  Re: how to get top two salaries from employee tables
Answer
# 4
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 ?    1 Yes 0 No
Sivaprasad
 
  Re: how to get top two salaries from employee tables
Answer
# 5
hi this is charan,
        select e1 *from employees e1
         where 2>
         ( select column(distincte2.sal)           
            where e2.sal>e1.sal   )
 
Is This Answer Correct ?    1 Yes 0 No
Charan
 
  Re: how to get top two salaries from employee tables
Answer
# 6
select salary from (select salary from emp order by salary 
desc)
where rownum < 3;
 
Is This Answer Correct ?    3 Yes 0 No
Rituparna
 
  Re: how to get top two salaries from employee tables
Answer
# 7
SELECT MIN (SALARY) FROM EMP WHERE 

SALARY IN (SELECT DISTINCT TOP 2 SALARY FROM EMP ORDER BY 
SALARY DESC)
 
Is This Answer Correct ?    0 Yes 0 No
Shiva - E-softsys
 
  Re: how to get top two salaries from employee tables
Answer
# 8
select top 2 salary from employee order by desc
 
Is This Answer Correct ?    0 Yes 0 No
Usha
 
  Re: how to get top two salaries from employee tables
Answer
# 9
select salary
from emp
where rownum <= 2
order by salary.

this query will list top 2 salaries
 
Is This Answer Correct ?    0 Yes 0 No
Selvakumar
 
  Re: how to get top two salaries from employee tables
Answer
# 10
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 ?    0 Yes 0 No
Maruti
 

 
 
 
Other Manual Testing Interview Questions
 
  Question Asked @ Answers
 
What ia the need of the testing? What is the purpose of the testing? what is the diff between these tw0?  2
I am B.tech graduate.Right now i am working in sutherland. I have completed the CSTP certification in STC.I am fresher for a software industry..I got a opportunity from STC thrid eye, They asked me to pay 50000 and they will provide training and after that they will provide a job with the salary of 5000..I dont know is that a better option for me...I have a little dilemma.. I awaiting for your suggestions..plz..  5
what are different types of test cases?. Softdel17
What is the difference between Client server and web based systems?  2
you found a bug and send it to the developer for rectification but the developer not accepting that bug at that time what will u do?(plz its very urgent give me the best answer plz) Encora9
Hi,Any body taking real time classes on manual testing.If u know please let me know in my E-Mail-id: anbarasu2k@gmail.com mob no:09740297798  4
what is the role of testlead in software testing  1
1.Unit testing ->integration testing->system testing->UAT in this where do u do the functional testing & regression testing? if these two done in each phase why should not mentioned in that ? 2.What are the difference b/w client & server? 3.While doing regression testing one bug raised due to functionality dependency, what is the bug status that one?  1
if we ve 1000 test cases to run and we ve no time and we dnt wanna use automation tool how we will complete testing in time constrant plz do answer Nexus-Technologies6
What is Smoke Testing  4
Realizing you won't be able to test everything - how do you decide what to test first?  2
what is the difference between pre UAT testing and UAT testing Deloitte5
If any bug is found in exploratory testing, then may I consider it as a test case?  2
tell me the V-model advantages & disadvantages QA3
wht is TRM  3
what type of bugs u found commonly in ur project? Wipro2
what is an inconsistent bug?  4
What is Static Testing and Static Test Technics?  1
what is testing policy and testing methodology? and what is the difference? MBT3
What is CRUD testing IBM1
 
For more Manual Testing Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com