DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: audit table design

  1. #1
    Join Date
    Mar 2004
    Posts
    53

    audit table design

    I have a question about audit table design. Do we need to have audit table primary key as a part of main table?

    Ex:

    Main table M Audit table A

    A has M.PK A.PK = A.KEY + M.PK

    should M have A.KEY? besides M.PK?

  2. #2
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    It would make no sense -- for each row of the main table there would be many rows in the audit table. How could the audit pk be part of the main pk?

    I wouldn't put a PK on the audit table -- it doesn't need one.
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width