Question: Find the the name of the customers who have a loan with amount more than 3000.
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 where amount > 3000