ParentFull threadannoyed·i think this originated from joe celko's sql for smarties:http://books.google.com/books?id=P1o4lxVnExsC&pg=PA340...View on HN