Northwind Customer Table

W

Wayne

How could I best show relationships between the customers
in the Northwind database? Let's say Island Trading owns
Bon app' and Eastern Connection and also manages Que
Delícia.

Thanks!
 
J

John Nurick

Hi Wayne,

Something like this:

tblRelationships
RelationshipID - autonumber primary key
Relationship - text
Inverse - text
e.g.
1," owns "," is owned by "
2," manages "," is managed by "

tblCustomerRelationships
FirstID - foreign key into CustomerID
SecondID - foreign key into CustomerID
RelationshipID
(all three fields in primary key)

So the fact that Island Trading owns Bon app' (and that Bon app' is
owned by Island Trading) is stored in the record
ISLAT, BONAP, 1
 
W

Wayne

Thank you very much John. I like your solution.

Wayne


-----Original Message-----
Hi Wayne,

Something like this:

tblRelationships
RelationshipID - autonumber primary key
Relationship - text
Inverse - text
e.g.
1," owns "," is owned by "
2," manages "," is managed by "

tblCustomerRelationships
FirstID - foreign key into CustomerID
SecondID - foreign key into CustomerID
RelationshipID
(all three fields in primary key)

So the fact that Island Trading owns Bon app' (and that Bon app' is
owned by Island Trading) is stored in the record
ISLAT, BONAP, 1


How could I best show relationships between the customers
in the Northwind database? Let's say Island Trading owns
Bon app' and Eastern Connection and also manages Que
Delícia.

Thanks!

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top