Question: Find the name of customers who do not have a loan with a type of Mortgages.
Schema: create table loan (cust_id varchar, loan_type varchar, PRIMARY KEY (cust_id)); create table customer (cust_name varchar, PRIMARY KEY (cust_name)); create table customer (cust_name varchar, cust_id varchar, PRIMARY KEY (cust_name))
SQL: select cust_name from customer except select t1.cust_name from customer as t1 join loan as t2 on t1.cust_id = t2.cust_id where t2.loan_type = 'mortgages'