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

sql - Find last match with latest inserted name in table -

c# - XML serialize base class without knowing derived class -

ios - Invalid IPA: missing embedded provisioning profile. Are you sure this is an ad hoc? -