G
Gary
I have numerous fields in a database which could be all grouped into 3
seperate tables. eg. tbl_customer, tbl_quotation, tbl_technical
The unifying factor in each table would be a field called ProjectName.
Beyond that, they pretty much have their own different field names.
However if I was to nominate ProjecName field as the primary key, I would
not be able to add duplicate names.
eg. using tbl_customer:
ProjectName: Acme
Company: Purple Pty Ltd
Contact: John Smith
next record entry in same table:
ProjectName: Acme
Company: Brown Pty Ltd
Contact: Sally Dent
this second entry of Acme would not be allowed (if ProjectName was a primary
key). I would like to be able to enter "Acme" more then once in customer
table (as well as entering Brown Pty Ltd more then once in the "company"
field. But in order to link up "Acme" in the other tables, a primary key
would be required.
I was simply thinking of not using the primary key and just use one table to
include all the fields in it. Would that be the way to go ?
seperate tables. eg. tbl_customer, tbl_quotation, tbl_technical
The unifying factor in each table would be a field called ProjectName.
Beyond that, they pretty much have their own different field names.
However if I was to nominate ProjecName field as the primary key, I would
not be able to add duplicate names.
eg. using tbl_customer:
ProjectName: Acme
Company: Purple Pty Ltd
Contact: John Smith
next record entry in same table:
ProjectName: Acme
Company: Brown Pty Ltd
Contact: Sally Dent
this second entry of Acme would not be allowed (if ProjectName was a primary
key). I would like to be able to enter "Acme" more then once in customer
table (as well as entering Brown Pty Ltd more then once in the "company"
field. But in order to link up "Acme" in the other tables, a primary key
would be required.
I was simply thinking of not using the primary key and just use one table to
include all the fields in it. Would that be the way to go ?