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   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
It is a SQL question. Write a query to find top three 
salaries in an EMP TABLE?
 Question Submitted By :: Loki
I also faced this Question!!     Rank Answer Posted By  
 
  Re: It is a SQL question. Write a query to find top three salaries in an EMP TABLE?
Answer
# 1
select salary 
from (select salary from tablename order by salary)
where rownum < 4;
 
Is This Answer Correct ?    2 Yes 1 No
Harish
 
  Re: It is a SQL question. Write a query to find top three salaries in an EMP TABLE?
Answer
# 2
Sorry ..above one is to find lowest threee...

This is for highest 3 salaries -

select salary 
from (select salary from tablename order by salary desc)
where rownum < 4;
 
Is This Answer Correct ?    0 Yes 0 No
Harish
 
 
 
  Re: It is a SQL question. Write a query to find top three salaries in an EMP TABLE?
Answer
# 3
In MYSQL:
select salary from (select salary from tbl_salary t order 
by salary desc) as u limit 3;

u is the table alias,which is a must.
 
Is This Answer Correct ?    0 Yes 0 No
Ruchi
 
  Re: It is a SQL question. Write a query to find top three salaries in an EMP TABLE?
Answer
# 4
for max 3 salarie:

SELECT TOP 3 sal from( Select DISTINCT max(sal)ORDER By sal
DESC) Order by sal;
 
Is This Answer Correct ?    0 Yes 0 No
Ravi Kumar Battula
 
  Re: It is a SQL question. Write a query to find top three salaries in an EMP TABLE?
Answer
# 5
select salary from(select salary from tablename order by 
salary desc) where rownum < 4
 
Is This Answer Correct ?    0 Yes 0 No
Saranya
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
How to access values from Unix OS and how to write..  1
How to test a web application using QTP?there is no any .exe file in web app,then how we can take the application for testing  1
What are Error handling other than Recovery scenario manager?  2
Where can i get the QTP tutorials. I wanna move to automation testing. Is there any book or URL, where i can find the source to read...  1
what is option explicit?  5
what is qtp automation frame work,what is the use of that frame work? iGate34
How can I use the value retrieved by OUTPUT VALUE check point as Input for other Actions? Motorola1
Explain abt the File System Object in QTP with ex Ordain-Solutions3
hi Action 1 and action2 if we save it in C:, what folders will be created explain plz iFlex3
can we use QTP for load testing instead of load runner?  3
How to map the test cases to requirements in QC? IBM2
what is descriptive.create()in qtp? IBM2
What r the diffrernt file extentions in QTP?  2
how to write this script using descriptive programming? the script below is the script generated by QTP plz write the script using descriptive programming? plzzzzzzzz do answer thanku Browser("Welcome: Mercury Tours").Page("orkut - login").WebEdit("Email").Set "test123" Browser("Welcome: Mercury Tours").Page("orkut - login").WebEdit ("Passwd").SetSecure "475259b450e3d212bef4a5f5ce9d32ebcbf4" Browser("Welcome: Mercury Tours").Page("orkut - login").WebButton("Sign in").Click Browser("Welcome: Mercury Tours").Page("orkut - home").Link ("Logout").Click Browser("Welcome: Mercury Tours").Page("orkut - login").Sync Browser("Welcome: Mercury Tours").Close  1
HOW TO HANDLE THE EARRORS WITHOUT USING RECOVERYSCNEORY? PLZ TELL ME IMMIDIATLY  1
can u put checpoints for moving images Accenture2
what is standalone database Wipro1
does QTP provides any tools for parametrisation?  3
what are the different types of framesworks in QTP?what is the keyword driven framework? Mindlance1
What is Virtual object wizard in QTP?  3
 
For more QTP 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