I have the following data:
Supplier Name Supplier City Supplier Country Spend
Supplier A New York US 500,000
Supplier A Dublin Ireland 300,000
Supplier B London UK 400,000
Supplier C Austin US 300,500
Supplier C London UK 200,000
Supplier D Barcelona Spain 500,000
Supplier D Paris France 650,000
I am looking to get the data only for the regional Europe suppliers and not the one that also operate in the US. So from the above data I only need Supplier B and D since A and C also operate in the US (New York and Austin respectively).
I am trying something like:
select
supplier_name,
supplier_city, supplier_country, spend
from
supplier_detail
where
supplier_name IN (select distinct supplier_name, supplier_city, supplier_country from supplier_detail where supplier_country<>'US')
The problem is that this still returns Supplier A (for Newyork) and Supplier C (for Austin).
Can anyone help?
Thanks. A
