If you have parent table , you can get data using "JOIN" by parent_id please share some tables detailfor more refrence