ios - NSPredicate ANY with multiple columns -


I have 2 tables, person and social

There are multiple societies in person; Usernames and services in Social

I am trying to write a bill on the person table which will match with the appropriate username and service from the social table. The statement below is incorrect Please let me know whether to use the same syntax or if there is a better way to get it. [AddObject predicts: [NSPredicate predicateWithFormat: @ "Anyone (Social usernames =% @ and socials.service =% @)", @ "Username", @ " Service "]];

This is a special use case for SUBQUERY:

< Pre> [NSPredicate predicateWithFormat: @ "SUBQUERY (social, $ s, $ s.username =% @ AND $ s.service =% @). @ Calculation> 0", @ "user name", @ "Service"]

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -