Hi community!!
I have two tables
1. table_role : it has two columns employee name, role
employee_name role
x admin
y analyst
z creater
m site admin
2. table_employee : it has two columns employee name, manager_name
employee_name manager_name
x y
y z
z m
m null
i want to produce an output where each manager has his role as well all the roles concatinaed of his associated employee under him
output table:
employee, role
x admin
y analyst,admin
z creator, analyst,admin
m admin,analyst, creator, site admin