i am researching about Hierarchical data by using ms sql .Here is my db value
Parent || Child
Fruit Red
Red Apple
Red Strawberry
Fruit Yellow
Yellow banana
banana papaya
Null Fruit
How can i join the table to become something like this
Fruit
Red
Strawberry
Apple
Yellow
banana
papaya
It can be more nested . How can i dynamic join the table and show the result at above?