table design question

Choksy

Registered User.
Local time
Today, 19:58
Joined
Oct 28, 2001
Messages
48
I have many account numbers in my other table and i want to have a system where account numbers can relate to one customer..how can i do this?
 
Can one customer have more than one account or can one customer only have one account?

You need to be more specific.
 
re

a customer can have more than one account.
 
two tables:

tblCustomers :
CustID (Primary Key)
FName
LName
etc...

tblAccounts :
AcctID (Primary Key)
CustID (Foreign Key)
AcctData
etc...

Relationships :
1 - many join between tblCustomers and tblAccounts set between the CustID fields

*make sure you check referential intergrety and set cascade update and delete (so you wont have account records without customers)

HTH,
Kev
 
The question's ongoing in the Tables forum in a lot more detail.
 

Users who are viewing this thread

Back
Top Bottom