I am receiving an error:
The query syntax is invalid
Error while processing square brackets
I have tried to run it with and without brackets and still receive the same error. Please also note that the same query runs fine referencing FROM _Sent
SELECT s.SubscriberKey, ss.EmailAddress, MIN(s.EventDate) as 'FirstClickDate', o.ACCT_NUM, o.ACCT_NM, o.BUYER_CONTACT_UID, o.CONTACT_GUID, o.FIRST_NM, o.LAST_NM, o.EMAIL_ADDR, o.PHONE
FROM _Click s
JOIN _job j ON j.JobID = s.JobID AND j.accountid = 1059291
JOIN ENT._subscribers ss ON s.SubscriberID = ss.SubscriberID
JOIN [MHAT_ImportDE] o ON s.SubscriberKey = o.CONTACT_GUID
WHERE (j.EmailName = ‘MHAT_Email1' and s.EventDate >= '8/5/2016')
Group by
s.SubscriberKey, ss.EmailAddress, o.ACCT_NUM,
o.ACCT_NM, o.BUYER_CONTACT_UID, o.CONTACT_GUID, o.FIRST_NM,
o.LAST_NM, o.EMAIL_ADDR, o.PHONE
s.EventDate >= '8/5/2016'
could be the culprit.marketing-cloud
tag for you so the context is more clear.