I have a database which I wish to normalize.
One of the attributes is province. I created a provnum attribute which will store the reference numbers for the province.
I created a separate province lookup table, with reference numbers and province name.
I want to create a query that will go through the main customer table, and for each province name, it will check the province lookup table, get the reference number for each province it finds, and then put that number in the provnum attribute field in the main customer table, So that I can remove the province attribute from the main customer table.
How do I do this?
One of the attributes is province. I created a provnum attribute which will store the reference numbers for the province.
I created a separate province lookup table, with reference numbers and province name.
I want to create a query that will go through the main customer table, and for each province name, it will check the province lookup table, get the reference number for each province it finds, and then put that number in the provnum attribute field in the main customer table, So that I can remove the province attribute from the main customer table.
How do I do this?