Created
November 20, 2020 09:39
-
-
Save zuzannamj/5aa72fc9671f730ff83199abdbe4e839 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT contact.Email, | |
contact.Id | |
FROM /*data extension name*/ contact | |
INNER JOIN ( | |
SELECT Email, | |
MAX(Id) AS Id | |
FROM /*data extension name*/ | |
GROUP BY Email | |
) aggr | |
ON aggr.Email = contact.Email AND aggr.Id = contact.Id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment