Skip to main content
SQL • LESSON 166

Combining Different Sources

How can we identify all unique customers across online and in-store channels?

Advanced3 Minutes1790 XP
🤔 THE QUESTION

How can we identify all unique customers across online and in-store channels?

💡 WHAT IS IT?

UNION across disparate transactional tables generates a unified unique customer identifier pool.

🎯 WHAT IS IT USED FOR?

Omnichannel customer unification, master data management, total customer base sizing.

💻 EXAMPLE
SELECT customer_id
FROM online_orders
UNION
SELECT customer_id
FROM store_orders;

🎯 Mission Objectives

Practice typing production-grade SQL code for Combining Different Sources.

  • Omnichannel union
  • Cross-source deduplication
  • Master customer ID list
  • Data lake integration