sfmc // SQLPRODUCTION
First Unique Open in a Window
Return the first unique open date per subscriber within a defined analysis window.
sqlopenisuniquemin
Trust & provenancePRODUCTION
Evidence tierPRODUCTIONOfficial sources0Other sources0Last verified2026-10-05
Evidence tier describes my hands-on relationship with the content. Official sources describe platform contracts/documentation. Production observations should not automatically be treated as official limits.
Building engagement recency or lifecycle metrics.
SELECT
SubscriberKey,
MIN(EventDate) AS FirstOpenDate
FROM _Open
WHERE IsUnique = 1
AND EventDate >= DATEADD(day,-30,GETDATE())
GROUP BY SubscriberKeyIsUnique reduces repeated opens at the tracking-event level and MIN selects the earliest qualifying event in the requested window.
Define whether uniqueness should be interpreted per job/event or across your final reporting grain.