我的嵌套SUBQUERY谓词有什么问题? [英] What is wrong in my nested SUBQUERY predicate?
本文介绍了我的嵌套SUBQUERY谓词有什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有你可以看到下面的数据模型,和一个嵌套的SUBQUERY谓词,但在某种程度上它只是不工作。任何想法如何纠正它?
I have the data model you can see below, and a nested SUBQUERY predicate, but in somehow it just not works. Any idea how to correct it?
我想,这里下来是最后工作:
I figured out, this here down is working finally:
[NSPredicate predicateWithFormat:@"SUBQUERY(bs, $B, SUBQUERY($B.cs, $C, $C.ds.name != \"xxx\").@count > 0).@count > 0"];
推荐答案
好的,这里是工作的解决方案:
Ok, so here is the working solution:
[NSPredicate predicateWithFormat:@"SUBQUERY(bs, $B, SUBQUERY($B.cs, $C, $C.ds.name != \"xxx\").@count > 0).@count > 0"];
这篇关于我的嵌套SUBQUERY谓词有什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文