I have two tables, Orders and Sales. Product Description is common to both tables. I am running the following query;
SELECT DISTINCTROW Orders.ProductDesc, Sum(Orders.quantity) AS OTotal, Sum(sales.Quantity) AS STotal
FROM Orders INNER JOIN sales ON Orders.ProductDesc = sales.ProductDesc
GROUP BY Orders.ProductDesc;
The results give twice the amount expected.
Can some one enlighten me.
Thanks
Otto Drozd
SELECT DISTINCTROW Orders.ProductDesc, Sum(Orders.quantity) AS OTotal, Sum(sales.Quantity) AS STotal
FROM Orders INNER JOIN sales ON Orders.ProductDesc = sales.ProductDesc
GROUP BY Orders.ProductDesc;
The results give twice the amount expected.
Can some one enlighten me.
Thanks
Otto Drozd