the reason for the multiple lines seem the depot and suplier columns.
SELECT `depot`, `supplier`, `product`, `qty`
FROM `data`
WHERE `status`= 'Open'
if you just want to get the product and quantity the issue this query
SELECT `product`, SUM(qty)
FROM `data`
WHERE `status`= 'Open'
GROUP BY product
Main Topics
Browse All Topics





by: angelIIIPosted on 2009-10-30 at 06:43:02ID: 25702832
this should do:
Select allOpen in new window