SQLQuokka
Start practicing
QuestionsLearnSandboxFeaturesRoadmapFAQ

Customers Buying Both Brands

Unsolved

A cross-promotion between the brands Acorn and Dune targets customers who already buy from both. A customer qualifies when they have at least one purchase of an Acorn product and at least one purchase of a Dune product. Write an SQL query that returns customer_id for every qualifying customer. Order the results by customer_id ascending.

SQL Query Editor (Ctrl+Enter to run)
0 characters · Valid
Canonical Solution Official

Official Solution is Hidden

Try solving the question with the schema explorer and hints first. When ready, reveal the verified canonical query and step-by-step logic breakdown.

Community Q&A & Discussion

Ask questions, share alternate queries, and explore solutions

0 comments
Asked By:
🏢 Meta

Submission History

Your recent query executions and answer checks

Execution Pipeline:
FROM products
Full source dataset
4 rows total
Ready. Type a query to see live execution.
Clause: Auto-Sync · AlaSQL Engine