Hi Niraj,
End user wants to find out
- the number of items sold to one customer within a specific period
- overall profit margin of each item
- Service Calls and A/R Invoices that the items transacted in.
The external command was quite simple, but it draws the data from Inventory Master, so I suspect each time it generate one row of data, it runs through the entire Inventory again.
The command is as shown:
SELECT T1.[ItemCode], T1.[Price]
FROM OITM T0
INNER JOIN ITM1 T1 ON T0.ItemCode = T1.ItemCode
WHERE T1.[PriceList] =11
Regards,
Joseph