Hello i am building a scheme for a multlevel marketing and i need to relate agents o other agents
View attachment 108196
so i am builfding the agents table using this scheme
AgentPK....AgentName....ReportsTo
1..............A..................null (this is a top agent)
2..............B..................null (this is a top agent)
3..............C..................1 (managed by A)
4..............D..................2 (managed by B)
5..............E..................1 (managed by A)
6..............F...................3 (managed by C)
7..............G..................3 (managed by C)
How do i relate, for example the agent 5 to agent 1?
thanks for help