F Fluffy Registered User. Local time Today, 21:19 Joined Sep 23, 2003 Messages 15 Sep 23, 2003 #1 Hey, I have a table 'Hubs' with key 'Hubid'... Since a hub can be connected to another hub in a network, I have a reflexive relationship... How do I do this in Access? Any help would be appreciated!
Hey, I have a table 'Hubs' with key 'Hubid'... Since a hub can be connected to another hub in a network, I have a reflexive relationship... How do I do this in Access? Any help would be appreciated!
Mile-O Back once again... Local time Today, 21:19 Joined Dec 10, 2002 Messages 11,305 Sep 23, 2003 #2 Add a second instance of the Hub table in the relationships window and relate the ID field.
F Fluffy Registered User. Local time Today, 21:19 Joined Sep 23, 2003 Messages 15 Sep 23, 2003 #3 Okay, thanks... But, since one hub can be connected to more than one hub, I have an n to n relation... So, I have to add an extra instance in the relationships window and also create a new table to get rid of the n to n relation, am I right?
Okay, thanks... But, since one hub can be connected to more than one hub, I have an n to n relation... So, I have to add an extra instance in the relationships window and also create a new table to get rid of the n to n relation, am I right?
F Fluffy Registered User. Local time Today, 21:19 Joined Sep 23, 2003 Messages 15 Sep 23, 2003 #4 And what about the second instance in relation to other tables... Do I relate the table 'PC's to both or only one of the 2 instances? I guess only one, but am not sure...
And what about the second instance in relation to other tables... Do I relate the table 'PC's to both or only one of the 2 instances? I guess only one, but am not sure...
Mile-O Back once again... Local time Today, 21:19 Joined Dec 10, 2002 Messages 11,305 Sep 23, 2003 #5 Create a junction table and link realte the two instances of the Hub table: tblHub HubID Other Info tblHub_1 HubID Other Info tblHubToHub HubID (FK from tblHub) HubID (FK from tblHub_1)
Create a junction table and link realte the two instances of the Hub table: tblHub HubID Other Info tblHub_1 HubID Other Info tblHubToHub HubID (FK from tblHub) HubID (FK from tblHub_1)
N namliam The Mailman - AWF VIP Local time Today, 22:19 Joined Aug 11, 2003 Messages 11,685 Sep 23, 2003 #6 Just wanted to add 1 small note to make sure... there will only be 1 table tblHub! But 2 instances in your query/relationship window. Regards
Just wanted to add 1 small note to make sure... there will only be 1 table tblHub! But 2 instances in your query/relationship window. Regards
F Fluffy Registered User. Local time Today, 21:19 Joined Sep 23, 2003 Messages 15 Sep 23, 2003 #7 Thank you!
F Fluffy Registered User. Local time Today, 21:19 Joined Sep 23, 2003 Messages 15 Sep 23, 2003 #8 Both are used on the net (I tried both on google) I don't know which one is correct though...