C
Cary
I have a table of data that contains all of the information I need to use
for a product look-up by application. The table originated as an Excel file
from the product manufacturer that I have imported into MsSQL. This table
includes the following fields, year, make, model, engine, product, part_no
and notes.
Because the information in each column is very repetitive I created new
tables named, Years, Makes, Models, Products, PartNums and Notes and
populated them with the redundant data from the original table using a
series of SQL statements. Now I have the tables created and populated with
the application information.
Now my problem is creating the foreign key table to look-up the product and
part numbers by the application. I would like to use a SQL statement to
update the information in the original table with id's from the other
tables. How can I do this? I don't mind creating another table, but the
original table contains the same application information I need.
Any help is appreciated!
for a product look-up by application. The table originated as an Excel file
from the product manufacturer that I have imported into MsSQL. This table
includes the following fields, year, make, model, engine, product, part_no
and notes.
Because the information in each column is very repetitive I created new
tables named, Years, Makes, Models, Products, PartNums and Notes and
populated them with the redundant data from the original table using a
series of SQL statements. Now I have the tables created and populated with
the application information.
Now my problem is creating the foreign key table to look-up the product and
part numbers by the application. I would like to use a SQL statement to
update the information in the original table with id's from the other
tables. How can I do this? I don't mind creating another table, but the
original table contains the same application information I need.
Any help is appreciated!