Morning folks, I'm a newbie at MC SQL. Need help wrapping my brain around the syntax of a SQL statement.
I have a Journey Builder (JB) Data Extension (DE) where I need the attendance field to be updated from another DE based on the Contact ID AND EVENT/ACTIVITY ID. So the source DE would be [Recruitment Contacts Booking Attended]
and the Target DE would be [SC Contact Journey - November 26 2020 456 PM - 2020-11-27T105138104]
. The following syntax I've tried with no success:
SELECT
T.[Event:Attendance__c]
, T.[Event:WhoId]
FROM [Recruitment Contacts Booking Attended] AS G
INNER JOIN [SC Contact Journey - November 26 2020 456 PM - 2020-11-27T105138104] as T
ON G.[Event:WhoId] = T.[Contact ID] AND G.[Event:Id]= T.[Activity ID]
WHERE G.Attendance = T.[Event:Attendance__c]