Hey guys.
If someone can find the time would they please have a look at the database I have attached here?
What it does is calculate average cases shipped for each day of the week from 4 tables for each day which contain an average or 15,000 records each. There are queries that also has to calculate what we call master cases for each day because some things are shipped as a master case or the master case is opened and individual units are shipped (This is identified as TRUE in the 'Break' field of the transactions tables).
In a nut shell I want to calculate the averages for each day for all products in the t_ItemSearch table (always has about 35,000 records) and put it into the t_CombinedVelocityTotals table for use in another database.
Everything seems to work properly but when I run the q_AllItemsWeeklyAverage append query, it takes forever to add the records to the table. By the way, I delete all records in the t_CombinedVelocityTotals table each time before I run the query.
I would really appreciate someone's help on this. Thanks.
If someone can find the time would they please have a look at the database I have attached here?
What it does is calculate average cases shipped for each day of the week from 4 tables for each day which contain an average or 15,000 records each. There are queries that also has to calculate what we call master cases for each day because some things are shipped as a master case or the master case is opened and individual units are shipped (This is identified as TRUE in the 'Break' field of the transactions tables).
In a nut shell I want to calculate the averages for each day for all products in the t_ItemSearch table (always has about 35,000 records) and put it into the t_CombinedVelocityTotals table for use in another database.
Everything seems to work properly but when I run the q_AllItemsWeeklyAverage append query, it takes forever to add the records to the table. By the way, I delete all records in the t_CombinedVelocityTotals table each time before I run the query.
I would really appreciate someone's help on this. Thanks.