Question: Find the name of customers who have more than one loan.
Schema: create table customer (cust_name varchar, cust_id varchar, PRIMARY KEY (cust_name)); create table loan (cust_id varchar, PRIMARY KEY (cust_id))
SQL: select t1.cust_name from customer as t1 join loan as t2 on t1.cust_id = t2.cust_id group by t1.cust_name having count(*) > 1