Joe Celko’s Trees and Hierarchies in SQL for Smarties