2017-07-21 Recursive Query SQL 1234567891011121314WITH MyTest as( SELECT P.ID, P.Parent_ID, CAST(P.ID AS VarChar(Max)) as Level FROM table P WHERE P.Parent_ID = 3 UNION ALL SELECT P1.ID, P1.Parent_ID, CAST(P1.ID AS VarChar(Max)) + ', ' + M.Level FROM table P1 INNER JOIN MyTest M ON M.ID = P1.Parent_ID )SELECT * From MyTest Newer Firewall. Open port for CentOS 7 Older Apache commands