Joe Celko's Trees and hierarchies in SQL for smarties - Celko, Joe. (Elsevier/Morgan Kaufmann,)