SQL: Customers Never Ordered

Medium
SQL — Joins SQL LEFT JOIN IS NULL
Find customers who never placed an order.

Constraints

Write standard SQL (MySQL 8.0 compatible).

Examples

Example 1:
Input: cust_id name 1 Ahmed 2 Sara
Output:
Example 2:
Input: cust_id name 1 Ahmed 2 Sara
Output:

Hints

LEFT JOIN with NULL check or NOT IN.
▲ Console

Install Talent Arabia

Get instant access to jobs and career tools on your device.