use count aggregate function. You can have Set<Id> masterIds = ... in this case you can use in SOQL operator. List<AggregateResult> result = [ select ...
確定! 回上一頁