Category Breadcrumbs
HardDescription
For every category show category_id, depth (1 for the top category, 2 for its
children, and so on) and path: the category names from the top category down to it, joined
with >, such as All Products > Lifestyle > Sports.
End your query with ORDER BY path.
Tables
| categories |
|---|
| category_id (PK) |
| category_name |
| parent_category_id (FK) |