Skip to main content
indentation, syntax highlighting
Source Link

I wanted to know if MAX(Eventdate) works in SFMC as its not working for me. I'm trying to only extract customer who have opened the email and only want to pull the records with most recent time/date as the extract contains dupes.

The query I'm using is below. I only want to pull all customers who has opened their email yesterday and with the email name below

SELECT 
Max(EventDate) as Eventdate,
IsUnique,
SubscriberKey,
SubscriberID 
  FROM _open o
  JOIN _Job j on j.jobid = o.jobid 
  WHERE eventdate >= DATEADD(dd,-1,getdate())
  AND EmailName = 'EW01 welcome email'
SELECT 
    Max(EventDate) as Eventdate,
    IsUnique,
    SubscriberKey,
    SubscriberID 
FROM _open o
JOIN _Job j
    ON j.jobid = o.jobid 
WHERE eventdate >= DATEADD(dd,-1,getdate())
    AND EmailName = 'EW01 welcome email'

I wanted to know if MAX(Eventdate) works in SFMC as its not working for me. I'm trying to only extract customer who have opened the email and only want to pull the records with most recent time/date as the extract contains dupes.

The query I'm using is below. I only want to pull all customers who has opened their email yesterday and with the email name below

SELECT 
Max(EventDate) as Eventdate,
IsUnique,
SubscriberKey,
SubscriberID 
  FROM _open o
  JOIN _Job j on j.jobid = o.jobid 
  WHERE eventdate >= DATEADD(dd,-1,getdate())
  AND EmailName = 'EW01 welcome email'

I wanted to know if MAX(Eventdate) works in SFMC as its not working for me. I'm trying to only extract customer who have opened the email and only want to pull the records with most recent time/date as the extract contains dupes.

The query I'm using is below. I only want to pull all customers who has opened their email yesterday and with the email name below

SELECT 
    Max(EventDate) as Eventdate,
    IsUnique,
    SubscriberKey,
    SubscriberID 
FROM _open o
JOIN _Job j
    ON j.jobid = o.jobid 
WHERE eventdate >= DATEADD(dd,-1,getdate())
    AND EmailName = 'EW01 welcome email'
added 36 characters in body; edited tags
Source Link
0xsegfault
  • 6.6k
  • 2
  • 32
  • 69

I wanted to know if MAX(Eventdate) works in SFMC as its not working for me. I'm trying to only extract customer who have opened the email and only want to pull the records with most recent time/date as the extract contains dupes.

The query I'm using is below. I only want to pull all customers who has opened their email yesterday and with the email name below

SELECT Max(EventDate) as Eventdate, IsUnique, SubscriberKey, SubscriberID FROM _open o JOIN _Job j on j.jobid = o.jobid WHERE eventdate >= DATEADD(dd,-1,getdate()) AND EmailName = 'EW01 welcome email'

SELECT 
Max(EventDate) as Eventdate,
IsUnique,
SubscriberKey,
SubscriberID 
  FROM _open o
  JOIN _Job j on j.jobid = o.jobid 
  WHERE eventdate >= DATEADD(dd,-1,getdate())
  AND EmailName = 'EW01 welcome email'

I wanted to know if MAX(Eventdate) works in SFMC as its not working for me. I'm trying to only extract customer who have opened the email and only want to pull the records with most recent time/date as the extract contains dupes.

The query I'm using is below. I only want to pull all customers who has opened their email yesterday and with the email name below

SELECT Max(EventDate) as Eventdate, IsUnique, SubscriberKey, SubscriberID FROM _open o JOIN _Job j on j.jobid = o.jobid WHERE eventdate >= DATEADD(dd,-1,getdate()) AND EmailName = 'EW01 welcome email'

I wanted to know if MAX(Eventdate) works in SFMC as its not working for me. I'm trying to only extract customer who have opened the email and only want to pull the records with most recent time/date as the extract contains dupes.

The query I'm using is below. I only want to pull all customers who has opened their email yesterday and with the email name below

SELECT 
Max(EventDate) as Eventdate,
IsUnique,
SubscriberKey,
SubscriberID 
  FROM _open o
  JOIN _Job j on j.jobid = o.jobid 
  WHERE eventdate >= DATEADD(dd,-1,getdate())
  AND EmailName = 'EW01 welcome email'
Source Link
Peter Ho
  • 515
  • 2
  • 9
  • 25

Does MAX(eventdate) work in SFMC

I wanted to know if MAX(Eventdate) works in SFMC as its not working for me. I'm trying to only extract customer who have opened the email and only want to pull the records with most recent time/date as the extract contains dupes.

The query I'm using is below. I only want to pull all customers who has opened their email yesterday and with the email name below

SELECT Max(EventDate) as Eventdate, IsUnique, SubscriberKey, SubscriberID FROM _open o JOIN _Job j on j.jobid = o.jobid WHERE eventdate >= DATEADD(dd,-1,getdate()) AND EmailName = 'EW01 welcome email'