You need to sign in to do that
Don't have an account?

how to select all AccountId of the table X that is not in the table Y?
I have a "table" Campaign Member in the Salesforce, with 2 records:

And I have a "table" Asset with 2 records too:

I would like to know if there is a way to select all AccountId of the table Asset that is not in the table Campaign Member.
For example, the query would return just the AccountId 111, because Account Id 870 there are in the table of Campaign Member.
Exist some way to make this?
And I have a "table" Asset with 2 records too:
I would like to know if there is a way to select all AccountId of the table Asset that is not in the table Campaign Member.
For example, the query would return just the AccountId 111, because Account Id 870 there are in the table of Campaign Member.
Exist some way to make this?
All Answers
try with below code in your deloper console.
If this helps, Please mark it as best answer.
Thanks!!