我有一个数据扩展,我将填充我的订阅者信息(由于我的API设置,我必须这样做)。但是,我希望将此信息粘贴到salesforce中的出版物列表中。如果人们取消订阅,我的数据扩展程序中的字段称为“订阅”字样。将被更新为“假”' (反之亦然)。我想设置一个查询来运行everday,扫描此数据扩展并更新我的发布列表中未取消的所有错误记录。我在下面构建了查询,但是我收到的错误是
"关键字' INNER'附近的语法不正确。"
SELECT b.EMAIL_ADDRESS, 'Unsubscribed' AS Status
FROM Welcome b
WHERE b.Subscribed = 'False'
AND Date_Changed >= DATEADD(day, -1, GETDATE())
INNER JOIN _ListSubscribers a
ON a.EmailAddress = b.EMAIL_ADDRESS
WHERE a.ListID = '112'
谢谢!
答案 0 :(得分:0)
joins
子句总是在SELECT b.EMAIL_ADDRESS, 'Unsubscribed' AS Status
FROM Welcome b
INNER JOIN _ListSubscribers a ON a.EmailAddress = b.EMAIL_ADDRESS
WHERE b.Subscribed = 'False' and
a.ListID = '112' and
b.Date_Changed >= DATEADD(day, -1, GETDATE());
mesh.position.x = 0.5;