I have two tables: prices and sales. To calculate the sales for the day, I need to do the following:
sum(Product1 x Price) where Product1 is in the Sales table and Price is in another table.
How do I combine these two seperate tables and then sum the multiplication of both values?