I came across these: How to get WooCommerce order details
and was wondering if these commands are powerful enough to work like mysql commands where you can SUM(quantity) of a product purchased and then group that by userid ... ?
so say I had this table in my database of orders;
user | product | quantity
1 | chair | 4
2 | chair | 4
1 | chair | 6
2 | bench | 3
2 | bench | 2
would I be able to use those commands presented in the link above to get this?
user | product | quantity
1 | chair | 10
2 | chair | 4
2 | bench | 5
and if so ... how?? I wanna collate all the data in my orders by total quantity per product purchased per user in a php based table...
Thanks :)