I\'m pretty new to SQL, trying to wrap my head around it, but it\'s getting a little confusing. Here\'s a simplified version of what I\'m working with.
I have this
To get the grandchildren, Try this query.
SELECT name FROM people WHERE parent_id IN (SELECT id from people where parent_id >0);