Selling Where Nobody Lives
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L4
Problem
The logistics team noticed orders shipping to broad regions (orders.region, e.g. 'EU', 'APAC') that don't line up with any country we have on file for customers (customers.country). Count the number of distinct order regions that do NOT appear as any customer's country. Return a single number as cross_region_count.
Summary
Shipments land in regions our customer list has never heard of.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.