I am trying to build a normalized database from a few Excel data sources, and one general problem I run into is translating direct text relationships into a relationship between a primary table and a reference table, referencing the ID from the primary table.
For example, I have a tblComponents ([ID], [Component], [Description], [kCategory1], [kCategory2] ,[kCategory3]) containing all of my components. Each of these can have up to three levels of categorization, which in this table is represented by three Number fields. These number fields should point to the PK of a reference table, which contains all of the categories and their levels ([ID], [Category], [categoryLevel]).
I have imported a table with four columns: component (text) and three category columns (text).
I want to match up the first category name with the reference table's text column, then bring the corresponding number into the tblComponents table. is there any clean way to do this easily? This is a problem I've run into in a bunch of different contexts when translating csv's to databases.