Chat with a LIVE Microsoft Access Expert!
 
       
 

         

   

Go Back   Access World Forums > Microsoft Access Discussion > Tables

 
 
Chat with a LIVE Microsoft Access Expert!
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-30-2005, 12:23 AM
ice-9 ice-9 is offline
Registered User
 
Join Date: May 2004
Posts: 88
ice-9 is on a distinguished road
5 pri-key to much???

Hi,

Im constructing an ERD.
I got rid of all redundancy, but im stuck atm

heres my question:
Is it bad to have 5 pri-key in a entity?
I an work around it when i leave a tiny bit of redunancy,
but in my perfect opinion its better to have no redunacy!
So can i contruct witout getting problems at a later level, relating to the 5 keys entity?
Reply With Quote
Sponsored Links
  #2  
Old 09-30-2005, 01:30 PM
Pat Hartman Pat Hartman is offline
Super Moderator
 
Join Date: Feb 2002
Location: Stratford,Ct USA
Posts: 20,669
Pat Hartman is a jewel in the roughPat Hartman is a jewel in the roughPat Hartman is a jewel in the roughPat Hartman is a jewel in the rough
Access allows up to 10 fields in a primary key or index. I have a slight preference for using "natural" keys since they avoid certain kinds of joins. On the other hand, I don't like joins on multiple fields or at least more than two fields. They are too easy to mess up. Bottom line is I would use an autonumber as the pk and add a unique compound index on the 5 fields to enforce the business rules.
__________________
Bridge Players Still Know All the Tricks
Reply With Quote
  #3  
Old 10-10-2005, 02:26 AM
JimmyK JimmyK is offline
Registered User
 
Join Date: Oct 2005
Location: Brisbane, AUS
Posts: 16
JimmyK is on a distinguished road
I think it's also very important to look at what fields you are putting as the primary key.
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to build a funciton to return primary key,alternate key and foreign key fields method Modules & VBA 0 07-18-2005 04:08 AM
Append Query Key Violation sudo Queries 2 10-27-2004 03:00 PM
Prevent Printing lena Reports 3 03-24-2004 07:59 AM
finding if certains keys are held down on click bri822 General 7 11-24-2003 04:49 PM
Create a Primary key in VB MarionD Modules & VBA 3 07-07-2003 10:50 PM


All times are GMT -8. The time now is 09:49 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) copyright 2009 Access World