Hi.
Does anybody know if it is possible to have a primary key that is not
unique?
The purpose of a primary key on the table is so that the database engine can
uniquely identify each record. Therefore, if there are duplicates, the
column cannot be a primary key.
it is the only way i can create the
right relationships in my database!
One may set up one-to-many or one-to-one relationships with several
possibilities as to cardinality, but one cannot set up relationships with
duplicate records. Perhaps you are trying to define a many-to-many
relationship? If so, this requires a transaction table -- a "middle man" --
defined between the two tables, so that there is a one-to-many relationship
set up between each of these two tables and the transaction table in the
middle.
Please explain what you are trying to do and we may be able to help you
further.
HTH.
Gunny
See
http://www.QBuilt.com for all your database needs.
See
http://www.Access.QBuilt.com for Microsoft Access tips.
(Please remove ZERO_SPAM from my reply E-mail address so that a message will
be forwarded to me.)
- - -
If my answer has helped you, please sign in and answer yes to the question
"Did this post answer your question?" at the bottom of the message, which
adds your question and the answers to the database of answers. Remember that
questions answered the quickest are often from those who have a history of
rewarding the contributors who have taken the time to answer questions
correctly.