select b.id, b.root_id, lpad ( ' ', 5 * ((decode(level,1,0,level))) ) || b.name dept_name, decode(b.active ,1,'X',' ') active from schema_name.table_name b connect by prior b.id=b.root_id start with b.id=:p_id order siblings by b.name;
Solution Architect | Umbraco Certified Master | Umbraco MVPx3 | Certified ScrumMaster
"Anyone can cook, but only the fearless can be great." Ratatouille