Which last names are both used by customers and by staff?
create table customers (last_name varchar, PRIMARY KEY (last_name)); create table staff (last_name varchar, PRIMARY KEY (last_name))
select last_name from customers intersect select last_name from staff