What is a self-join, and when is joining a table to itself necessary?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks what a SQL self-join is and for an analytical problem that can only be solved by joining a table to itself. Tests understanding of table aliases, join conditions between rows of the same table, and how to avoid self-matches and duplicate pairs.