SELECT ADDR.Addr_Code, ADDR.Addr_Name, ADDR.Addr_OrderCurrency, STK.Stock_Code, STK.Stock_SuppCode, COST.StkCost_FactoryCurrency
FROM TBL_Stock AS STK INNER JOIN TBL_StockCosts AS COST ON STK.Stock_Code = COST.StkCost_StockCode
LEFT OUTER JOIN TBL_Addresses AS ADDR ON (ADDR.Addr_Kind = 'S') AND (ADDR.Addr_Code = STK.Stock_SuppCode)
WHERE COST.StkCost_FactoryCurrency <> ADDR.Addr_OrderCurrency
|