i need a requirement as below can anyone please assist me depending on the parent_id and id the relation
id | category_name | parent_id
1 Electronics 0
2 computer 1
3 ram 2
4 Fashion 0
5 tshirt 4
6 round neck 5
i need a requirement as below
category name | sub category | sub sub category |
Electronics NA NA
Electronics computer NA
Electronics computer ram
Fashion NA NA
Fashion tshirt NA
Fashion tshirt round neck
please help