B
bws93222
I have 3 tables:
OrdersTable (OrdersTable_ID, [Foreign Key from OrderDetailsTable],....)
OrderDetailsTable (OrdersTable_ID, Product_ID...)
ProductsTable (Product_ID, ProdDesc....)
The Primary Key in the OrderDetailsTable is a composite of OrdersTable_ID
and ProductsTable_ID. I know how to create the composite by selecting both
fields and clicking the 'Primary Key' button but how then do I create a
reference between the OrdersTable and the OrderDetailsTable primary/composite
key? (Do I need to use scripting and a junction table to avoid a circular
reference or is there an easier way?) Thx.
OrdersTable (OrdersTable_ID, [Foreign Key from OrderDetailsTable],....)
OrderDetailsTable (OrdersTable_ID, Product_ID...)
ProductsTable (Product_ID, ProdDesc....)
The Primary Key in the OrderDetailsTable is a composite of OrdersTable_ID
and ProductsTable_ID. I know how to create the composite by selecting both
fields and clicking the 'Primary Key' button but how then do I create a
reference between the OrdersTable and the OrderDetailsTable primary/composite
key? (Do I need to use scripting and a junction table to avoid a circular
reference or is there an easier way?) Thx.