Customers Who Never Order
<p>Table: <code>Customers</code></p>

<pre>
+-------------+---------+
| Column Name | Type    |
+-------------+---------+
| id          | int     |
| name        | varchar |
+-------------+---------+
id is the primary key (column with unique values) for this table.
Each row of this table indicates the ID and name of a customer.
</pre>

<p>&nbsp;</p>

<p>Table: <code>Orders</code></p>

<pre>
+-------------+------+
| Column Name | Type |
+-------------+------+
| id          | int  |
| customerId  | int  |
+-------------+------+
id is the primary key (column with unique values) for this table.
customerId is a foreign key (reference columns) of the ID from the Customers table.
Each row of this table indicates the ID of an order and the ID of the customer who ordered it.
</pre>

<p>&nbsp;</p>

<p>Write a solution to find all customers who never order anything.</p>

<p>Return the result table in <strong>any order</strong>.</p>

<p>The result format is in the following example.</p>

<p>&nbsp;</p>
<p><strong class="example">Example 1:</strong></p>

<pre>
<strong>Input:</strong> 
Customers table:
+----+-------+
| id | name  |
+----+-------+
| 1  | Joe   |
| 2  | Henry |
| 3  | Sam   |
| 4  | Max   |
+----+-------+
Orders table:
+----+------------+
| id | customerId |
+----+------------+
| 1  | 3          |
| 2  | 1          |
+----+------------+
<strong>Output:</strong> 
+-----------+
| Customers |
+-----------+
| Henry     |
| Max       |
+-----------+
</pre>

[]
['Create table If Not Exists Customers (id int, name varchar(255))', 'Create table If Not Exists Orders (id int, customerId int)', 'Truncate table Customers', "insert into Customers (id, name) values ('1', 'Joe')", "insert into Customers (id, name) values ('2', 'Henry')", "insert into Customers (id, name) values ('3', 'Sam')", "insert into Customers (id, name) values ('4', 'Max')", 'Truncate table Orders', "insert into Orders (id, customerId) values ('1', '3')", "insert into Orders (id, customerId) values ('2', '1')"]
[{"value": "mysql", "text": "MySQL", "defaultCode": "# Write your MySQL query statement below\n"}, {"value": "mssql", "text": "MS SQL Server", "defaultCode": "/* Write your T-SQL query statement below */\n"}, {"value": "oraclesql", "text": "Oracle", "defaultCode": "/* Write your PL/SQL query statement below */\n"}, {"value": "pythondata", "text": "Pandas", "defaultCode": "import pandas as pd\n\ndef find_customers(customers: pd.DataFrame, orders: pd.DataFrame) -> pd.DataFrame:\n    "}, {"value": "postgresql", "text": "PostgreSQL", "defaultCode": "-- Write your PostgreSQL query statement below\n"}]
{"mysql": ["Create table If Not Exists Customers (id int, name varchar(255))", "Create table If Not Exists Orders (id int, customerId int)"], "mssql": ["Create table Customers (id int, name varchar(255))", "Create table Orders (id int, customerId int)"], "oraclesql": ["Create table Customers (id int, name varchar(255))", "Create table Orders (id int, customerId int)"], "database": true, "name": "find_customers", "pythondata": ["Customers = pd.DataFrame([], columns=['id', 'name']).astype({'id':'Int64', 'name':'object'})", "Orders = pd.DataFrame([], columns=['id', 'customerId']).astype({'id':'Int64', 'customerId':'Int64'})"], "manual": false, "postgresql": ["Create table If Not Exists Customers (id int, name varchar(255))", "Create table If Not Exists Orders (id int, customerId int)"], "database_schema": {"Customers": {"id": "INT", "name": "VARCHAR(255)"}, "Orders": {"id": "INT", "customerId": "INT"}}}
{"mysql": ["MySQL", "<p><code>MySQL 8.0</code>.</p>"], "mssql": ["MS SQL Server", "<p><code>mssql server 2019</code>.</p>"], "oraclesql": ["Oracle", "<p><code>Oracle Sql 11.2</code>.</p>"], "pythondata": ["Pandas", "<p>Python 3.10 with Pandas 2.2.2 and NumPy 1.26.4</p>"], "postgresql": ["PostgreSQL", "<p>PostgreSQL 16</p>"]}
['Database']