First: - I've an table "Category" with 2 columns, "CatID", "Cat", "Package" - I've an table "Product" with 2 columns, "ProID", "CatID", "price" - About several reasons, it isn't possible to change the db structure. The table names and column names are actual to keep it simple.
Table "Category": Sometimes there is 1 record with an "Package" name, but sometimes there are 3 records with the same "Package" name, etc.
I want for every record with the same "Package" name the average "price" from table "Product" and put it in an new table "Test"