Hello all,
It’s a problem which is giving me pain.
I have a table agent_registration which have following structure:
agentID agentname patentID
001 a NONE
002 b 001
003 c 001
004 d 002
005 e 003
So, whenever we register a customer whose agentID is ‘005’ then how can we make a query so that all the agent linked with that agentID will be selected and fill in the datagridview.
Like when agentID ‘005’ register a customer then
005 parentID 003 -> 003 is agent whose parentID 001
The datagridview must show
agentID agentname patentID
001 a NONE
003 c 001
005 e 003
Please provide me solution for that
Thanks in advance.