G
Guest
I am new to Database applications and have a few questions. I have a
database with a orders table with a customerID, ProductsID... each pointing
to its respective tables(customer table and products table). Each order
will have a new customer (customer table is not used to show all the
customers it is used to record the customer info for that order only) and
the same is true for the products table. Each product is different in its
own regard and the products table will save the product and corresponding
options (fields in the table) for that order. This is not like the
Northwind db with the customers and products tables represent the
customers/products that can be used for orders. The customers and products
are dynamic and my front end (C# WinForm App) will update each table for an
order. Know here is my question: Since I have each key(ProductID and
CustomerID) being incremented. How can I save in the Orders table the keys
from the customer/products tables? Do I first update these tables to get
the keys and then update the orders table? How do I create a business
workflow object to handle this? Any help would be appreciated!
Thanks
database with a orders table with a customerID, ProductsID... each pointing
to its respective tables(customer table and products table). Each order
will have a new customer (customer table is not used to show all the
customers it is used to record the customer info for that order only) and
the same is true for the products table. Each product is different in its
own regard and the products table will save the product and corresponding
options (fields in the table) for that order. This is not like the
Northwind db with the customers and products tables represent the
customers/products that can be used for orders. The customers and products
are dynamic and my front end (C# WinForm App) will update each table for an
order. Know here is my question: Since I have each key(ProductID and
CustomerID) being incremented. How can I save in the Orders table the keys
from the customer/products tables? Do I first update these tables to get
the keys and then update the orders table? How do I create a business
workflow object to handle this? Any help would be appreciated!
Thanks