J
Joan
Hi,
I am looking at designing a new database for a company
that has several grain processing mills in several
locations. All of the ordering and billing is done at one
location for all mills. Currently the orders milled at
one mill begins with a certain number sequence and the
orders milled at a different mill begins with a different
number sequence. So at a glance of the order number they
can immediately tell which mill the order was milled at.
They would like this capability in the new system.
My question is how do I go about setting up the
primary key for the Orders table. Should it be a
composite key: one field of which is a 2 digit number for
the mill number and the other field is some sort of
sequential number for the order number? Is it possible
for half of a composite primary key to be an auto number?
How is the best way to set this up?
Joan
I am looking at designing a new database for a company
that has several grain processing mills in several
locations. All of the ordering and billing is done at one
location for all mills. Currently the orders milled at
one mill begins with a certain number sequence and the
orders milled at a different mill begins with a different
number sequence. So at a glance of the order number they
can immediately tell which mill the order was milled at.
They would like this capability in the new system.
My question is how do I go about setting up the
primary key for the Orders table. Should it be a
composite key: one field of which is a 2 digit number for
the mill number and the other field is some sort of
sequential number for the order number? Is it possible
for half of a composite primary key to be an auto number?
How is the best way to set this up?
Joan