Re: Table Structure ordering of columns
- From: "Rodney Wise" <NSpamPlease_rodney1@xxxxxxxxxxxxx>
- Date: Thu, 27 Apr 2006 09:49:38 -0400
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?
--
....
`·.¸¸.·´¯`·.¸¸.·´¯`·-> rodney
.
- Follow-Ups:
- Re: Table Structure ordering of columns
- From: Leslie Milburn
- Re: Table Structure ordering of columns
- References:
- Table Structure ordering of columns
- From: Dan
- Re: Table Structure ordering of columns
- From: Larry DiGiovanni
- Re: Table Structure ordering of columns
- From: Dan
- Re: Table Structure ordering of columns
- From: Larry DiGiovanni
- Re: Table Structure ordering of columns
- From: Dan
- Re: Table Structure ordering of columns
- From: Leslie Milburn
- Table Structure ordering of columns
- Prev by Date: Re: SQL query - Null issue
- Next by Date: Hi Guys, it is time to subscribe.
- Previous by thread: Re: Table Structure ordering of columns
- Next by thread: Re: Table Structure ordering of columns
- Index(es):
Relevant Pages
|