SELECT B.CommunityID, Bld.BudgetDefinitionIDY
FROM (SELECT CommunityID FROM LCSInsight_ExtractBudgetLeads GROUP BY CommunityID ) B
CROSS JOIN LCSInsight_ExtractBudgetLeadsDim Bld
WHERE NOT EXISTS ( SELECT NULL FROM LCSInsight_ExtractBudgetLeads Bl
WHERE Bl.CommunityID = B.CommunityID
AND B1.BudgetDefinitionIDY = Bld.BudgetDefinitionIDY
)
|