What is wrong in my nested SUBQUERY predicate?

淺唱寂寞╮ 提交于 2019-12-30 06:38:09

问题


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"];


回答1:


Ok, so here is the working solution:

[NSPredicate predicateWithFormat:@"SUBQUERY(bs, $B, SUBQUERY($B.cs, $C, $C.ds.name != \"xxx\").@count > 0).@count > 0"];


来源:https://stackoverflow.com/questions/13242383/what-is-wrong-in-my-nested-subquery-predicate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!