I have category table which have category in parent and child relation
For example,
| cat_id | cat_parent_id |cat_name|
| -------- | -------------- |---------
| 1 | |Car
| 2 | 1 |Porsche
| 3 | 2 |911
| 4 | 3 |Petrol, SUV >
| 5 | 4 |3.6L >
| 6 | 5 |3606CC H6 GAS SOHC Naturally Aspirated >
| 7 | 6 |2020
| 8 | 6 |2021
| 9 | 6 |2022
I need to get all category level from this table.