CREATE TABLE order_items (order_item_id NUMBER, order_id NUMBER, product_id NUMBER, order_quantity CLOB)
CREATE TABLE customers (customer_id NUMBER, payment_method_code CLOB, customer_number CLOB, customer_name CLOB, customer_address CLOB, customer_phone CLOB, customer_email CLOB)
CREATE TABLE contacts (contact_id NUMBER, customer_id NUMBER, gender CLOB, first_name CLOB, last_name CLOB, contact_phone CLOB)
CREATE TABLE products (product_id NUMBER, product_type_code CLOB, product_name CLOB, product_price NUMBER)
CREATE TABLE customer_address_history (customer_id NUMBER, address_id NUMBER, date_from TIME, date_to TIME)
CREATE TABLE customer_orders (order_id NUMBER, customer_id NUMBER, order_date TIME, order_status_code CLOB)
CREATE TABLE addresses (address_id NUMBER, line_1_number_building CLOB, city CLOB, zip_postcode CLOB, state_province_county CLOB, country CLOB)

Show the names of customers who have both an order in completed status and an order in part status.
SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = 'Completed' INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = 'Part'
SELECT "T1"."customer_name" FROM "customers" "T1" JOIN "customer_orders" "T2" ON "T1"."customer_id" = "T2"."customer_id" AND "T2"."order_status_code" = 'Completed' INTERSECT SELECT "T1"."customer_name" FROM "customers" "T1" JOIN "customer_orders" "T2" ON "T1"."customer_id" = "T2"."customer_id" AND "T2"."order_status_code" = 'Part'