I have the following tables:
1.) PRODUCT_INFORMATION: "ID", "CUST_ID", "DISTR_ID", "PROD_ID", "CNC_ID"
2.) CUSTOMERS: "ID", "CUSTOMER_NAME"
3.) DISTRIBUTORS: "ID", "DISTR_NAME"
4.) PRODUCT_NAME: "ID", "MACHINE_NAME" (Dropdown list box)
5.) CONTROLLER: "ID", "CNC_NAME" (Dropdown list box)
Each table has a primary key assigned. The customers table has an ID column and a CUSTOMER_NAME column with unique index property set to avoid any duplication. How do I insert values in the product_information table that has a foreign key column from the CUSTOMERS table if we insert a value in the CUSTOMER_NAME field of the CUSTOMERS table. I want to know how can I create a join between all the tables so that when I insert values in individual tables they are joined with a serial number column in the PRODUCT_INFORMATION table?
Please suggest!!

1 answers
HI, this is my honest opinion. Relationships don't work...they usually end up breaking things...in most of my cases anyway as I am mainly a web developer.
you may not agree with me but understand...web dev and Windows dev are very different.
ok : this is not actually a "FIX" to your existing structure, but a more effective way to do it.
I would say this method is more : scalable and efficient.
here is how I would do the example
answered one year ago by:
753