SELECT * FROM table1 t1 LEFT JOIN table1 t2 ON t1.parent_id = t2.id
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)