Zend Framework Certification 100-500 Question # 60 Topic 7 Discussion

Zend Framework Certification 100-500 Question # 60 Topic 7 Discussion

100-500 Exam Topic 7 Question 60 Discussion:
Question #: 60
Topic #: 7

You have created a table based on the following data:

EmpID NUMBER (5) PRIMARY KEY

EmpName VARCHAR2 (35) NOT NULL

Salary NUMBER (9, 2) NOT NULL

Commission NUMBER (4, 2)

ManagerName VARCHAR2 (25)

ManagerID NUMBER (5)

Now, you want to display the names of employees and their managers, using a self join. Which of the following SQL statements can you use to accomplish this?

Each correct answer represents a complete solution. Choose two.


A.

SELECT e.EmpName, m.ManagerName

FROM Employees e, Employeesm

WHERE e.EmpID = m.ManagerID;


B.

SELECT e.EmpName, m.ManagerName

FROM Employees e SELF JOIN Employeesm

ON e.EmpID = m.ManagerID;


C.

SELECT e.EmpName, m.ManagerName

FROM Employees e INNER JOIN Employeesm

ON e.EmpID = m.ManagerID;


D.

SELECT e.EmpName, m.ManagerName

FROM Employees e LEFT OUTER JOIN Employees m

ON e.EmpID = m.ManagerID;


Get Premium 100-500 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.