Hi All,
I have a question which I wonder could someone help me with... I think it is quite complex , but am hoping someone could point me in the right direction.
I need to extract all items (stockItem table) where there have been no sales order (SOPOrderReturn --> Linked to SOPOrderReturnLine -- which holds the stock item)for particular customers....so all items I need to extract and customers that have never brought the goods.
The tables concerned are
SLCustomerAccount -->Primary Key SLCustomerAccountID
SOPOrderReturn-->Primary Key = SOPOrderReturnID Foreign Key = CustomerID (SLCustomerAccountID)
SOPOrderReturnLine --> ForeignKey SOPOrderReturnID(SOPOrderReturnID), ItemCode = StockItem.Code
StockItem -> StockItem.Code = SOPOrderReturnLine.ItemCode.
I hope that I am making sense.....I attach a screen shot of the tables concerned , it might explain it better.
Thanks a million for any information.
Best Regards
Aidan