G
Guest
I read somewhere that *ALL* tables should have a primary key, but no
explanation was given as to why or what benefit it serves. After looking
around for an answer, I've decided to ask for myself...
Most of my tables already have primary keys but there are some tables with
only a few fields and no primary key.
For instance, I have a table called [Company_Table] with CompanyID as the
primary key. I have another table called [Company_Memo_Table] with 3 fields:
CompanyID (Indexed, Duplicates OK), MemoDate and MemoDescription, but no
primary key. The CompanyID fields relate in a one-to-many relationship....a
single company can have mutiple memos.
Since the CompanyID (foreign key) in the [Company_Memo_Table] is already
indexed, what benefit would be gained by adding a generic AutoNumber field as
the primary key if it will never be used in a relationship or query?
Thanks in advance.
explanation was given as to why or what benefit it serves. After looking
around for an answer, I've decided to ask for myself...
Most of my tables already have primary keys but there are some tables with
only a few fields and no primary key.
For instance, I have a table called [Company_Table] with CompanyID as the
primary key. I have another table called [Company_Memo_Table] with 3 fields:
CompanyID (Indexed, Duplicates OK), MemoDate and MemoDescription, but no
primary key. The CompanyID fields relate in a one-to-many relationship....a
single company can have mutiple memos.
Since the CompanyID (foreign key) in the [Company_Memo_Table] is already
indexed, what benefit would be gained by adding a generic AutoNumber field as
the primary key if it will never be used in a relationship or query?
Thanks in advance.