这是我的查询:
SELECT
a.[Hierarchy Group ID],
o.[Opportunity ID],
o.[Opportunity Name],
o.[ARR],
o.[TCM],
p.[Product Group],
a.[Account Management Scope],
FROM OpportunityTable as o
LEFT JOIN AccountTable as a ON o.[Account ID]=a.[Account ID]
LEFT JOIN ProductTable as p ON o.[Product Lookup]=p.[Product ID]
WHERE
o.[Stage] = 'Value'
a.[Account Management Scope] in ('Value 1','Value 2','Value 3')
当我运行此查询时,我会为 Hierarchy Group ID 和 Account Management Scope 的某些行(但不是全部)获得空值,即使我知道这些值不为空。但是,当我添加一个额外的“WHERE [Account ID] = 'Specific Value'”时,Hierarchy Group ID 和 Account Management Scope 的值突然出现在那个只显示空值的特定帐户上。我加入这三个表的方式是否有问题导致这种情况发生?