Web and mobile clients log user activity into two separate tables with the
same shape:
web_events (
user_id INTEGER,
event_date TEXT -- 'YYYY-MM-DD'
)
mobile_events (
user_id INTEGER,
event_date TEXT -- 'YYYY-MM-DD'
)
Write a SQL query that returns every DISTINCT (user_id, event_date) pair that
appears in either table. A pair appearing in both tables — or more than once
within one table — must appear exactly once in the result.
Return columns: user_id, event_date.
Order by user_id ASC, then event_date ASC.