title: how can we write mysql query where parent id have a child id and next time child id is a parent id how can i do?
body: <p>how can i built the query where parent id have a five child id and after that child id is a parent id and have a five child id.how can i call in our query.table just only one.kindly help me about this confusion.thanks
  Regards
  imadbaloch</p>