unnested
Pro

© 2026 unnested

Built for learners, by learners

AboutPrivacy PolicyTerms of ServiceContactSuggest a feature
Learn SQL

Self Joins

Pro

8 questions

Unlock all 8 questions with a Pro subscription.

Upgrade to Pro
OutputEasy
Who gets dropped when manager_id is NULL?
Multiple choiceEasy
Joining a table to itself
OutputEasy
Does the top of the hierarchy show up?
OutputMedium
How many pairs does id < id produce?
OutputMedium
Matching rows by price - how many pairs appear?
OutputMedium
Chaining two self joins up the hierarchy
Multiple choiceHard
Self join without aliases - what breaks?
Multiple choiceHard
Which levels survive two INNER JOINs?