Find the address of all customers that live in Germany and have invoice.
create table invoice (customerid varchar, PRIMARY KEY (customerid)); create table customer (address varchar, customerid varchar, country varchar, PRIMARY KEY (address))
select distinct t1.address from customer as t1 join invoice as t2 on t1.customerid = t2.customerid where t1.country = "germany"