i just want to retrieve all cases related to an account using a single query. However i have used 2 queries to extract it.
select contactid from contact where accountid='accountid_of_individual_account'
then.....
select casenumber,subject,status from case where contactid='contact1' or contactid='contactid2' and so on.......... but its too cumborse. is there any single line equivalent query for fetching it.
Exactly where do you have problem. It wouldnt help if you just say that you have some issue.
- NC
Hi chitra
i just want to retrieve all cases related to an account using a single query. However i have used 2 queries to extract it.
select contactid from contact where accountid='accountid_of_individual_account'
then.....
select casenumber,subject,status from case where contactid='contact1' or contactid='contactid2' and so on.......... but its too cumborse. is there any single line equivalent query for fetching it.
Thanks
sanju
Hi,
Nested querys, joins are not supported in sForce now!! You would have to use 2 separate querys and then match the ids and go forward.