Growth wants first-touch vs last-touch attribution from the raw touch log:
marketing_touches (
touch_id INTEGER PRIMARY KEY, -- monotonically increasing
user_id INTEGER,
channel TEXT,
touched_at TEXT -- 'YYYY-MM-DD HH:MM:SS'
)
Write a SQL query that returns, per user, the channel of their earliest touch
and the channel of their latest touch. If two touches share a timestamp,
the lower touch_id is the earlier one.
Return columns: user_id, first_channel, last_channel.
Order by user_id ASC.