Problem 1398 · Easy

Customers Who Bought Products A and B but Not C

SQL walkthrough: scan each order into a per-customer flag table, keep customers who bought A and B but never C, and return their id and name.

Open the interactive visualisation