SELECT table.productid, product.weight
FROM table1
INNER JOIN product
ON table1.productid=product.productid
where table1.box = '55555';
Basically it's an inner join that looks at a list of products in a box, and then the weights of those products.
So i'll have 2 Columns in my results, the products, and then the weights of each product.
Is there an easy way to get the SUM of the weights that are listed in this query?
Thanks