📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What is the main challenge of querying a deep self-referencing hierarchy, such as all levels below a manager?

A. It needs recursive queries or repeated self-joins to walk each level ✅
B. It needs no joins at all
C. It can be done with a single simple filter
D. It needs a junction table only

Correct Answer: A. It needs recursive queries or repeated self-joins to walk each level

Explanation

Each level is another self-join, so finding all descendants at unknown depth requires recursion, such as a recursive common table expression.