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

How to join two tables together?
Hello all, I am trying to do a simple query like select * from contracts, accounts where contracts.accountid = accounts.id and its not working. Any ideas why this is not working?
Thanks
Jason
Thanks
Jason
Has anyone done a client side join and has some examples to share?
QueryResults contractResult = binding.Query("Select ID, ContractNumber, AccountId from Contract");
if (contractResults.size > 0)
{
string [] accountIds = new string [contractResult.size];
for (int i = 0; i < contractResults.size; i++)
{
accountIds[i] = contractResults.records[i].Id;
}
sObject [] accounts = binding.retrieve("Id, Name, Phone", "Account", accountIds);
}