Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. 11sven

    getting funky numbers from sum()

    that is the problem i need to display the sizeUnitPrice of a specific itemProdId from the sizes table.(item.itemProdId = size.sizeProductId) i think i see what is going on here when i state "WHERE itemOrdId =36 AND itemCustId = -1 AND itemProdId = sizeProductId" i thoughht i was narrowing it...
  2. 11sven

    getting funky numbers from sum()

    no, when I run this query, SELECT itemProdId, itemCustId, itemProdQty, itemProdSize, sizeUnitPrice, itemOrdId FROM items, sizes WHERE itemOrdId =36 AND itemCustId = -1 AND itemProdId = sizeProductId i get 4 rows with itemOrdId=36, when i browse my items table in phpmyadmin there is only one row...
  3. 11sven

    getting funky numbers from sum()

    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...

Part and Inventory Search

Back
Top