Query of the Week · Library

Repeat buyers as a lookalike seed

← Back to overview

1 · Business question

At least two purchases: a small, valuable group from which Amazon models similar users.

2 · Query (SQL)

SELECT user_id
FROM amazon_attributed_events_by_conversion_time_for_audiences
WHERE purchases > 0
GROUP BY user_id
HAVING SUM(purchases) >= 2

3 · Interpretation

As the seed of a lookalike audience (500 to 500,000 users).

/en/query-of-the-week/repeat-buyers-seed/