Primary Keys for tables

  • Thread starter Thread starter H.Roberts
  • Start date Start date
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.
 
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.
 
Back
Top