I tried to create a table that would take the sum of one field and multiply it by another field but I'm Doing something wrong. Below is my table that I'm working from and the SQL I created for the query.
OrderLine Table consist of 4 columns; OrderNum, PartNum, NumOrdered, and QuotedPrice.
Query I need to create is a table that consist of the OrderNum and OrderTotal for each order. The OrderTotal is the SUM of the NumOrdered multiplied by the QuotedPrice.
Here is my SQL that I come up with
SELECT OrderLine.OrderNum, SUM(NumOrdered*QuotedPrice) AS OrderTotal
FROM OrderLine;
Once I try to run the SQL it says "Your query does not include the specified expression 'OrderNum' as part of an aggregate function."
What am I doing wrong....
Oh I'm using Access 2013 too
Thanks,
Sunwers