frinholp Posted May 27, 2010 Posted May 27, 2010 (edited) I am creating tables using the supertype/subtype model. I am wondering what is the standard in terms of which key field I should be using to create the relationships. I have a contacts table which has a key field ContactID. A contact could be a supplier, a customer or both. If a contact is a customer a CustomerID is automatically generated and held in the contacts table. Also if a contact is a supplier a SupplierID is generated in the contacts table. I then have two tables holding details which are specific to customers and suppliers. Which key should I be using to create a relationship between the tables. Should I be using (1) the ContactID or (2) either the SupplierID or CustomerID. Thanks in advance Lee Edited May 27, 2010 by Guest
Recommended Posts
This topic is 5354 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now