Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.
--Query 1 SELECT SUM(I.[QTYORDER]) FROM POPHEADER as I inner join POPDETAIL as P on I.PONUMBER = P.PONUMBER where I.[POLNESTA] not in (4,5,6) and P.[DOCDATE] >= '1/1/2014' and I.[ITEMNMBR] = '209822011' and I.POTYPE =1 --Query 2 SELECT SUM(QTYRECVD) AS QTY FROM INVOICE_TABLE where [DATERECD] >= '1/1/2014' and RCPTSOLD = 0 and [PONUMBER] = '07277' and [ITEMNMBR] = '209822011'