S
sahafi
Hi All,
I have 2 tables, that I need to creat a relationship between them. Table 1
has: location #, Year, Period, Week, Product_Class, Prod_Flavor, Prod_size,
Total LB. Table 2 has: Location #, Year, Period, Week, Product_Class, Hours,
DT_Hours.
I need to set up a query on tbl1 so as to sum up all the pounds for specific
product class for a given week (sum all pounds regardless of flavor or size).
Because currently you can come up with more than 20 rows of data for one
week, while in tbl2 only one row of data for each week.
I have tried to set up a query without selecting the flavor and size fields,
but when I ran it, it didn't sum up the pounds, I end up with the same amount
of rows on the query as it is on the table. Can anyone help with this.
My second question, after figuring step one to make a primary key
fromLocation#+Yr+PD+WK+Product_Class) because it seems like that the only
way to have a unique indentifier, unless someone have a better idea.
Thanks.
I have 2 tables, that I need to creat a relationship between them. Table 1
has: location #, Year, Period, Week, Product_Class, Prod_Flavor, Prod_size,
Total LB. Table 2 has: Location #, Year, Period, Week, Product_Class, Hours,
DT_Hours.
I need to set up a query on tbl1 so as to sum up all the pounds for specific
product class for a given week (sum all pounds regardless of flavor or size).
Because currently you can come up with more than 20 rows of data for one
week, while in tbl2 only one row of data for each week.
I have tried to set up a query without selecting the flavor and size fields,
but when I ran it, it didn't sum up the pounds, I end up with the same amount
of rows on the query as it is on the table. Can anyone help with this.
My second question, after figuring step one to make a primary key
fromLocation#+Yr+PD+WK+Product_Class) because it seems like that the only
way to have a unique indentifier, unless someone have a better idea.
Thanks.