Skip to main content
Nagendra Singh 님이 #CRM Configuration에 질문했습니다

Hello there, Need help to get help on following, I was Parent data comparinf with child data, my query look like this:

Select ParentId, parentfield from Parent where parentfield NOT IN ( select childfield from child where parent.id = child.id)

Any advise?

답변 1개
  1. 2015년 7월 1일 오전 6:32
    Hi,

    you want data like for one parent record if there is 3 child record then you are looking for that .. if  yes then

    you can try this queary SELECT id,Name,(SELECT id,Account.Name FROM Contacts) FROM account

    And if we see your QUERY and if we convert it in to account contact relationship it will look like

    Select id,name from account where id NOT IN ( select AccountId from contact where accountId =: id)

    and this query will not return any records.

    please let me know if  i am wrong to understand your problem.

    Thanks,

    Keyur Modi
0/9000