Zend
200-530 · Question #517
Celina works as a Database Administrator for Tech Mart Inc. The company uses an Oracle database. The database contains a table named Employees. Following is the structure of the table: EmpID NUMBER…
The correct answer is C. SELECT e.EmpName, m.ManagerName FROM Employees e, Employees m WHERE D. EmpID = m.ManagerID. See the full explanation below for the reasoning.
Question
Celina works as a Database Administrator for Tech Mart Inc. The company uses an Oracle database. The database contains a table named Employees. Following is the structure of the table: 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) Celina wants to display the names of employees and their managers, using a self join. Which of the following SQL statements will she use to accomplish this? Each correct answer represents a complete solution. Choose two.
Options
- ASELECT e.EmpName, m.ManagerName FROM Employees e SELF JOIN Employees m ON
- BSELECT e.EmpName, m.ManagerName FROM Employees e LEFT OUTER JOIN
- CSELECT e.EmpName, m.ManagerName FROM Employees e, Employees m WHERE
- DEmpID = m.ManagerID;
- ESELECT e.EmpName, m.ManagerName FROM Employees e INNER JOIN Employees m ON
How the community answered
(55 responses)- A11% (6)
- B4% (2)
- C84% (46)
- E2% (1)
Community Discussion
No community discussion yet for this question.