He has given table attributes-
empid,empfirstname,emplastname,MangerID.And he asked write
query to display empfirstname and mangername?

Answers were Sorted based on User's Feedback



He has given table attributes- empid,empfirstname,emplastname,MangerID.And he asked write query to..

Answer / naveen kamatam

select a.employee_id,a.first_name,a.manager_id,b.first_name
from test a inner join test b
on a.manager_id=b.employee_id order by 1

Is This Answer Correct ?    4 Yes 0 No

He has given table attributes- empid,empfirstname,emplastname,MangerID.And he asked write query to..

Answer / nandini p

For that you can use self join.
With in organization you will get manager name and their
mangers name, entire chain if you know the mangerid.

Is This Answer Correct ?    1 Yes 0 No

He has given table attributes- empid,empfirstname,emplastname,MangerID.And he asked write query to..

Answer / sneha.va

Suppose 2 tables;
Employee : having columns
empid,empfirstname,emplastname,MangerID
Manager : ManagerID, Managername

SELECT A.EMPFIRSTNAME,B.MANAGERNAME FROM EMPLOYEE A INNER
JOIN MANAGER B
ON A.MangerID = B.MangerID

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More Manual Testing Interview Questions

What is the purpose of QTP in Manual Testing?

6 Answers  


What is QA Release Package ?

1 Answers   IBM,


What is the major difference between database testing and datwarehouse testing ?

2 Answers  


what is mean by object oriented design?how is testing affected by object oriented designs?

1 Answers  


What is Buddy Testing?

2 Answers  






What particiption a manual tester can do in documentation? Are there any tools available for only documentation?

4 Answers   Logica CMG,


What is regression testing and what are the types in regression testing?

2 Answers  


What are W3C Standards?

2 Answers  


If we have no SRS,BRS but we have test cases does u execute the test cases blindly or do u follow any other process|

4 Answers   IBM,


expalin integration tsting who will perform ths type of testing at what time will do

2 Answers   Aspire,


Hi, Anybody knows about Hexaware company..

0 Answers  


what is project and how many types of industry projects are there

1 Answers  


Categories