Which two statements are true regarding the output of this command?

View the Exhibit and examine the description of the EMPLOYEES table.
Evaluate the following SQL statement:
SELECT employee_id, last_name, job_id, manager_id, LEVEL
FROM employees
START WITH employee_id = 101
CONNECT BY PRIOR employee_id=manager_id ;
Which two statements are true regarding the output of this command? (Choose two.)

View the Exhibit and examine the description of the EMPLOYEES table.
Evaluate the following SQL statement:
SELECT employee_id, last_name, job_id, manager_id, LEVEL
FROM employees
START WITH employee_id = 101
CONNECT BY PRIOR employee_id=manager_id ;
Which two statements are true regarding the output of this command? (Choose two.)

A.
The output would be in top-down hierarchy starting with EMPLOYEE_ID having
value 101.

B.
The output would be in bottom-up hierarchy starting with EMPLOYEE_ID having
value 101.

C.
The LEVEL column displays the number of employees in the hierarchy under the
employee having the EMPLOYEE_ID 101.

D.
The LEVEL column displays the level in the hierarchy at which the employee is
placed under the employee having the EMPLOYEE_ID 101



Leave a Reply 4

Your email address will not be published. Required fields are marked *


Tejash

Tejash

C is not correct. B and D should be the answer.

João Ramos

João Ramos

Neither B or C are correct. CONNECT BY PRIOR employee_id = manager_id means top-down hierarchy and not bottom-up (as stated in option D ‘placed under the employee’).

So correct answers are A and D.

Mingtao Sun

Mingtao Sun

I also think the correct answers are A and D.

Eva

Eva

I also think the correct answers are A and D.