Reflexive relation

Fluffy

Registered User.
Local time
Today, 19:38
Joined
Sep 23, 2003
Messages
15
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!
 
Add a second instance of the Hub table in the relationships window and relate the ID field.
 
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?
 
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...
 
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)
 
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
 
Both are used on the net (I tried both on google)

I don't know which one is correct though...
 

Users who are viewing this thread

Back
Top Bottom