Anyone, please help me with the SQL query for traversing the tree.
I have a table called users
, which has the columns id
, name
, and parent
.
Please, help me with a SQL query that can traverse the tree from the desired root.
EDIT Hi i got this URL that seems to be solved.
Deeply nested subqueries for traversing trees in MySQL
But i don't have knowledge of JOIN, Thats y i cant construct the query with my table :-( :-(