User485912165 posted
Dear
All,
i have a company table at below.
comid companyname parentcompany maincom
------- ----------- --------------
1 test 0 1
2 testxx 1 0
so here the second record i have parent company = 1 meaning company test as parent for textxx , if a company has parentcompany as 0 means tat has no parent company.
so in this i need have a result to display in grid is
companyname parentcompany
test no
testxx test
i tired with inner join , but it is only select the second record as it's skip the first record due inner join with comid .
please advice.
Looking for your valuable reply!!!
Regards,
Muthu