I have a database in which items are placed in categories. Some of these categories are nested, for example:
Animals > Birds > Parrots
Animals > Birds > Penguin
Animals > Mammals > Cats
Animals > Mammals > Dogs
Animals > Reptiles > Snakes
Plants > Trees
Plants > Flowers
etc.
I have them in a table along the rows
CATEGORY PARENT
Animals -
Birds Animals
Penguin Birds
etc.
I would like to be able to take the starting point, say, “Animals”, and list all the subcategories that fall under this, so for animals we would indicate “Birds, mammals, reptiles, parrots, penguins, cats, Snakes
Is this possible with a single request? If not, what do I need to do
TIA
Grant source
share