Ok so i have this query
SELECT *
FROM configure_system
WHERE EstimateID='EDB95PY0Z2' AND StepID=1
which will return the following 8 rows…i need a query that only returns all the distinct productID and the total price and the quantity of them …so for example
i want something like this
ProductID ProductPrice TotalPrice quantity
2 575 1175 2
3 839 1678 2
9 1349 4047 3
12 1699 1699 2
I tried using the distinct query and count but have not been successful
1 Answer