Select A.SubscriberKey, COUNT(DISTINCT EventDate) AS Count,B.CreatedDate
From _Open A
JOIN _ListSubscribers B
ON A.SubscriberKey = B.SubscriberKey
Where B.ListID = '10630'
Group By SubscriberKey
HAVING COUNT(DISTINCT EventDate) = 1
Run Code Online (Sandbox Code Playgroud)
您需要指定列来自的表,因为两个表中都存在相同的列名.
即使用Group By A.SubscriberKey,就像你在SELECT列表中所拥有的一样.
此外,除MySQL之外的所有RDBMS都要求您也将其添加B.CreatedDate到GROUP BYSELECT列表中的列表中