Find the name of customers who have both saving and checking account types.
CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR)
SELECT cust_name FROM customer WHERE acc_type = 'saving' INTERSECT SELECT cust_name FROM customer WHERE acc_type = 'checking'
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR) Question: Find the name of customers who have both saving and checking account types. [/INST] SELECT cust_name FROM customer WHERE acc_type = 'saving' INTERSECT SELECT cust_name FROM customer WHERE acc_type = 'checking' </s>