Originally Posted by
lfpm062010
Base on what you have say.
The table "Customer" will have "CustomerNo" (create this field is recommended) or "CustomerName" as primary key.
Create a "Location" table with "LocationNo" as primary key.
The table "Contract" will have "CustomerNo" and "LocationNo" as its primary key (as long as there is no duplicate "CustomerNo" and "LocationNo" combination).
The table "Invoice" will have "InvoiceNo" (create this field is recommended) and "CustomerNo" and "InvoiceNo" as its primary (as long as there is no duplicate "CustomerNo" and InvoiceNo" combination).
Hope this helps.