🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Recursive CTEs: all 15 questions

Quiz: Recursive CTEs · Question 5 of 15

To list everyone UNDER a manager, the recursive part joins on:

To list everyone UNDER a manager, the recursive part joins on:

  1. A.e.manager_id = previous.emp_id
  2. B.e.emp_id = previous.manager_id
  3. C.e.emp_id = previous.emp_id
  4. D.e.manager_id IS NULL
Answer & explanation

Correct answer: e.manager_id = previous.emp_id

Find employees whose manager was found in the previous round.

Can you get the rest right without peeking?

Take the timed Quiz: Recursive CTEs quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →