Table schema:
CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR)

Question: Find the name of customers who have both saving and checking account types.
SQL: SELECT cust_name FROM customer WHERE acc_type = 'saving' INTERSECT SELECT cust_name FROM customer WHERE acc_type = 'checking'