G
Guest
Identified 4 entities:
Company (primary key: CompanyID)
Factory (primary key: ILS)
Audit (primary key: AuditNumber)
Invoice (primary key: InvoiceID)
One factory can supply many companies and a company can have many factories
supply them (i.e. many to many)
One factory can receive many audits.
Each audit can receive many invoice numbers.
The invoice number is associated (allocated) with one company (One company
can receive many invoices).
Getting the invoice number to include the audit is my problem.
I can't seem to get around this without affecting an index key.
Company (primary key: CompanyID)
Factory (primary key: ILS)
Audit (primary key: AuditNumber)
Invoice (primary key: InvoiceID)
One factory can supply many companies and a company can have many factories
supply them (i.e. many to many)
One factory can receive many audits.
Each audit can receive many invoice numbers.
The invoice number is associated (allocated) with one company (One company
can receive many invoices).
Getting the invoice number to include the audit is my problem.
I can't seem to get around this without affecting an index key.