![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
It seems to me that if I use numbers as PK values this would limit my ability to export the data to other users that have the same software and wish to merge the data together. It may conflict with another database numbering scheme. I don't know if that would be an advantage over an apha numeric field, however. At least in the numeric PK I wouldn't have to come up with a value to enter. Dan |
#12
| |||
| |||
|
#13
| |||
| |||
|
|
Leslie, So, you're using a compound Primary key? The reason I'm asking is this... If you have an inventory system (as example) that keeps the same items at different locations, I would want the primary key on the unique item identifier value... (that may be a SKU number)... But that same SKU may also exist at another location (another database)... To combine all location databases would then create a problem... So, I identify each location with a unique 4 character value... I then combine this 4 character value with the SKU value to create my primary key... it is not a "compound key".... but the value in my primary key is actually the combined value of Location and SKU. This way, I avoid compound primary Key fields Now, when seperate databases are compined, there will never be a primary key conflict. Do you do it this way, or actually use a compound primary key? |
![]() |
| Thread Tools | |
| Display Modes | |
| |