Primary Keys for tables

H

H.Roberts

I'm in the process of building a database - I have a clients table, the
clients have many locations in a separate table - how do I define the primary
keys for both tables.
 
L

Lynn Trapp

You would probably use a surrogate key -- such as ClientID (AutoNumber) --
for the Clients table. For the Addresses table, you could also use a
surrogate key -- AddressID (AutoNumber) -- and a Foreign Key -- ClientID
(Long Integer) that references the ClientID in the Clients table.
 

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