P
Paul James
I'm building an Access 2k database to handle Invoices and Receipts, and I
have a question about the design that I'm planning to use.
Here are some of the design specs and business rules:
1. one Receipt can be for many Invoices.
2. one Invoice can only have one Receipt (partial payments aren't accepted).
3. sometimes payments are entered into Receipt for which no Invoice was
generated
4. both Invoices and Receipts have Details, and these are essentially the
same fields.
My question is this: can I keep the Invoice Details and Receipt Details in
the same table, where both the Invioce and Receipt tables have a one-to-many
relationship with the Detail table?
tblInvoice --> tblDetail <-- tblReceipt
Or should I keep them in two separate Detail tables?
tblInvoice --> tblInvoiceDetail
tblReceipt --> tblReceiptDetail
I can think of advantages and disadvantages to both designs, but I suppose
there could be an overriding reason why one is better than the other, which
hasn't occurred to me.
In view of the design specs above, is it better to keep the Invoice Details
and Receipt Details in the same table, or in two separate tables?
Thanks in advance,
Paul
have a question about the design that I'm planning to use.
Here are some of the design specs and business rules:
1. one Receipt can be for many Invoices.
2. one Invoice can only have one Receipt (partial payments aren't accepted).
3. sometimes payments are entered into Receipt for which no Invoice was
generated
4. both Invoices and Receipts have Details, and these are essentially the
same fields.
My question is this: can I keep the Invoice Details and Receipt Details in
the same table, where both the Invioce and Receipt tables have a one-to-many
relationship with the Detail table?
tblInvoice --> tblDetail <-- tblReceipt
Or should I keep them in two separate Detail tables?
tblInvoice --> tblInvoiceDetail
tblReceipt --> tblReceiptDetail
I can think of advantages and disadvantages to both designs, but I suppose
there could be an overriding reason why one is better than the other, which
hasn't occurred to me.
In view of the design specs above, is it better to keep the Invoice Details
and Receipt Details in the same table, or in two separate tables?
Thanks in advance,
Paul