C
C
I have an IT-generated database with a non-duplicating primary key that is a
text field- unique inventory part. I now need to design an expanded database
on my own and still require a non-duplicative primary key. However, there are
2 possible fields: the inventory part and the order number. Some items have
the unique part but no order number (was existing in inventory without a
specific order unless I create a dummy) and some have an order number but
with part numbers that are common and not unique. The order number is
alphanumeric, 10 digits.
How can I design the new database to create unique records? Do I need to
create a third field that is made by joining the other two and designate it
as the primary? This new field will be jibberish to all users, so I'd prefer
not to do it this way. How do I design the input forms and reports to show
the two major fields (part name and order number) while maintaining record
uniqueness?
text field- unique inventory part. I now need to design an expanded database
on my own and still require a non-duplicative primary key. However, there are
2 possible fields: the inventory part and the order number. Some items have
the unique part but no order number (was existing in inventory without a
specific order unless I create a dummy) and some have an order number but
with part numbers that are common and not unique. The order number is
alphanumeric, 10 digits.
How can I design the new database to create unique records? Do I need to
create a third field that is made by joining the other two and designate it
as the primary? This new field will be jibberish to all users, so I'd prefer
not to do it this way. How do I design the input forms and reports to show
the two major fields (part name and order number) while maintaining record
uniqueness?