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