Search code examples
androidrealm

Realm Query in multiple table


I have two tables in Realm database. User table has a column "Tag" and Detail table has a column "description". I want to perform a search in a way that when user type something, it should get searched first in user table and then in detail table and then show the combined result. Thanks in advance!!


Solution

  • You cannot combine the result of two queries. Instead your data model should use relationships.