![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am stumped how to use a self join to extract a correct information from the same table. I assume that a self join is the way to do what I want to accomplish. I have a table called Firms in which I store information about accounting firms (such as address, telephone, URL, specialties etc). A short name of the firm, which is created manually, and is the primary key. It must be unique. A long name field contains a full legal name of the firm. Many small accounting firms have an alliance relationship with larger accounting firms. So as a part of the Firm table fields I also have a short name for the alliance firm, if any. I insert the short name using an index. I would like to extract the long name of the alliance firm from the same table, corresponding with the short name. But I am walking in circle and got all wrapped up in table occurences and correct relationships. Can' find my way out. Can anybody help? I am sure this must be trivial to many, but it is a new thing and a challenge to me. Thanks George |
![]() |
| Thread Tools | |
| Display Modes | |
| |