使用半連線
選擇所有在其下具有未知機會記錄的帳戶
SELECT Id, Name FROM Account WHERE AccountId IN
(SELECT Id FROM Opportunity WHERE IsClosed = false)
選擇所有在其下具有未知機會記錄的帳戶
SELECT Id, Name FROM Account WHERE AccountId IN
(SELECT Id FROM Opportunity WHERE IsClosed = false)