| Chat with a LIVE Microsoft
Access Expert! |
||||
|
||||
|
#1
|
|||
|
|||
|
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? |
| Sponsored Links |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
I think it's also very important to look at what fields you are putting as the primary key.
|
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 05:08 AM |
| Append Query Key Violation | sudo | Queries | 2 | 10-27-2004 04:00 PM |
| Prevent Printing | lena | Reports | 3 | 03-24-2004 08:59 AM |
| finding if certains keys are held down on click | bri822 | General | 7 | 11-24-2003 05:49 PM |
| Create a Primary key in VB | MarionD | Modules & VBA | 3 | 07-07-2003 11:50 PM |