Introduction
To get one unique row per group from a table, picking the first row based on a specific order.
You want to find the latest order for each customer.
You need the first event recorded for each user.
You want one example product from each category.
You want to remove duplicates but keep the earliest entry per group.