J
JME
hello experts,
i have table Transaction like below;
TransID ProductID Cost Quantity Resale
1 5 $250 10 $300
2 7 $1000 25 $1240
3 7 $1000 25 $1240
4 2 $450 15 $600
5 1 $1400 5 $1600
i created qryAveCost:
SELECT Transaction.TransID, [Transaction]![Cost]/
[Transaction]![Quantity] AS AveCost
FROM Transaction;
now i create new query qryAveMargin:
SELECT Transaction.TransID, ([Transaction]![Resale]/
[Transaction]![Quantity])-[qryAveCost]![AveCost] AS
AveMargin
FROM Transaction INNER JOIN qryAveCost ON
Transaction.Quantity = qryAveCost.Quantity;
It turn out to give 7 records instead of 5 which some
records are repeated twice. Where is my mistake?
i have table Transaction like below;
TransID ProductID Cost Quantity Resale
1 5 $250 10 $300
2 7 $1000 25 $1240
3 7 $1000 25 $1240
4 2 $450 15 $600
5 1 $1400 5 $1600
i created qryAveCost:
SELECT Transaction.TransID, [Transaction]![Cost]/
[Transaction]![Quantity] AS AveCost
FROM Transaction;
now i create new query qryAveMargin:
SELECT Transaction.TransID, ([Transaction]![Resale]/
[Transaction]![Quantity])-[qryAveCost]![AveCost] AS
AveMargin
FROM Transaction INNER JOIN qryAveCost ON
Transaction.Quantity = qryAveCost.Quantity;
It turn out to give 7 records instead of 5 which some
records are repeated twice. Where is my mistake?