so I have sql table tab with father (c_id_1) and child (c_id_2) information
tab
C_ID C_ID_1 C_ID_2 ---------- ---------- ----------