How can we merge web and mobile events adding a source tag to each record?
Projecting static literal tags ('web', 'mobile') alongside UNION ALL creates unified event streams.
Clickstream ingestion, multi-platform analytics, centralized logging pipelines.
SELECT event_id, event_date, 'web' AS source
FROM web_events
UNION ALL
SELECT event_id, event_date, 'mobile' AS source
FROM mobile_events;Practice typing production-grade SQL code for UNION ALL for Event Data.