SELECT `itemProdId` , `itemProdQty` , `itemProdSize` , sizeUnitPrice, sum( `itemProdPrice` ) as calcTotal
FROM items
LEFT JOIN sizes ON itemProdId = sizeProductId
where `itemCustId` = -1
and `itemOrdId` = 36
group by itemProdId
i entered test data and this query only finds one row calcTotal should = 1.00 but when i run query calcTotal = 4.00 the only time i get the correct sum() is when i change it to a single table query?
FROM items
LEFT JOIN sizes ON itemProdId = sizeProductId
where `itemCustId` = -1
and `itemOrdId` = 36
group by itemProdId
i entered test data and this query only finds one row calcTotal should = 1.00 but when i run query calcTotal = 4.00 the only time i get the correct sum() is when i change it to a single table query?