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

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" AS "T1" JOIN "customer_orders" AS "T2" ON "T1"."customer_id" = "T2"."customer_id" AND "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" AND "T2"."order_status_code" = 'Part'