I have this table:
id | payment_id | quantity | unit cost 1 633 1 750 2 633 1 750 3 632 2 750 4 632 2 750
What I need:
payemnt_id | total 633 1500 632 3000
You can also think of it as a country, and then try to find the total for each country. I was sure there were some lessons like this, but could not be found on STFW.
source share