in reply to Trees in SQL, adjacency lists and sorting.
"A Look at SQL Trees" might be of interest; and there's more in the next month's article.
Not that it's really Perl related, though . . . :)