I am using Oracle SQL Developer. I essentially have a table of pictures that holds the columns:
[DATE_CREATED(date), NUM_of_PICTURES(int)]
and if I do a select *
You can use:
select FK_Items,Sum(PoiQuantity) Quantity from PurchaseOrderItems POI left join PurchaseOrder PO ON po.ID_PurchaseOrder=poi.FK_PurchaseOrder group by FK_Items,DATEPART(MONTH, TransDate)