Hi!
I am trying to write a sql statemet and having a little hard time wiht it.
Here is an example.
TblCompany
----------
CompanyID 11 12 13 14
CompanyName A B C D
TblBranch
----------
CompanyID 12 13 13 11 11
BranchID 11 12 14 12 14
a Company can be branches and vice versa.
There is a combo box of company name.
If I select one company name from it.
I want all the branch company name to show up in below textbox.
Say I select company A, i want its branch names to show up like B,D.
A-> B, D
B-> A
C-> B, D.
Can you help me with the SQL statement??
Thank you so much in adavance.
I am trying to write a sql statemet and having a little hard time wiht it.
Here is an example.
TblCompany
----------
CompanyID 11 12 13 14
CompanyName A B C D
TblBranch
----------
CompanyID 12 13 13 11 11
BranchID 11 12 14 12 14
a Company can be branches and vice versa.
There is a combo box of company name.
If I select one company name from it.
I want all the branch company name to show up in below textbox.
Say I select company A, i want its branch names to show up like B,D.
A-> B, D
B-> A
C-> B, D.
Can you help me with the SQL statement??
Thank you so much in adavance.