what would be possible query of in sql ? if we want separate sum of each different item id's with multiple where clauses like if we have a table persons :
-----------------
id | Amount
1 | 1.0
1 | 2.0
2 | 1.0
2 | 8.0
3 | 1.0
4 | 1.0
4 | 2.0
5 | 1.0
5 | 1.0
6 | 3.0
6 | 1.0
-----------------
i have wrote this but it doesn't works.
select sku , sum(qty_ordered) as total from sales_order_item
where sku = '86-0007-000072,86-0007-000073,44-0002-000137,83-0003-000045,44-0002-000124,83-0003-000046,44-0002-000182,44-0002-000134,44-0002-000132,304113,44-0002-000131,44-0002-000133,320146,44-0002-000217,0001-0001-000002'