How to Select one of the repeated values in a column by groups – Phpmyadmin
So I have this table: I am trying to produce a column that will look like this (containing the computed results) I tried this query by it gives an error SELECT Name, SUM(Amount) AS TAmnt, ProductPrice-SUM(Amount) AS OutB FROM t1…