Results 1 to 3 of 3
  1. #1
    Jamesy_007 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Mar 2020
    Location
    Caribbean
    Posts
    109

    Composite Keys in Databases are they GOOD

    So I have this table let's call it tblpersons for this forum. But tblpersons has many fields that i can break into two or three tables, tblpersons has some basic info about the person FirstName LastName , DOB Adddress Phone etc. However there's some other information I want to have but my table will have too many fields in my opinion so I've created another table tbldescrpition where i can have their Height, Weight, Adress_2, FamilyContact etc and the fields go on. I want to have a Primary & Compoiste keys in tbldescription because I don't want duplicate info even with persons with same name i want to be assured that John Zoo ID#2 in tblpersons is definitely same in John Zoo ID#2 tbldesciption so they're linked. Can i do this by having a composite key in tbldescpition and linking the two table with a one to one relationship???, am I going about this the right way can someone guide me through this please???; want to make sure these two or three tables are definitely linked and there no pseudo duplication.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Don't overwork it, just create an autoNum ID field.
    then you only need this 1 field to bind the sub table and need no vb.

  3. #3
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,936
    also little point in splitting a table to create multiple tables with one to one relationship unless there are security reasons for doing so or really are too many fields. Depends what you mean by too many fields but a table can have 255 fields.

    Fields where you need to keep a history (perhaps change of address or weight) or there are multiple options (such as landline/mobile/email/mobile#2) you would put into a separate table anyway.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Can I Have Composite Keys in Multiple Tables Within a Database
    By Margaret123 in forum Database Design
    Replies: 15
    Last Post: 08-09-2019, 02:51 PM
  2. Replies: 20
    Last Post: 01-09-2017, 12:08 AM
  3. Replies: 1
    Last Post: 05-24-2012, 09:35 AM
  4. Using composite keys but stuck badly in the design
    By hmushtaq in forum Database Design
    Replies: 2
    Last Post: 01-25-2011, 12:25 AM
  5. Using composite keys to enter data in a form
    By kymmyg in forum Database Design
    Replies: 2
    Last Post: 09-08-2010, 01:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums