I do not recommend using the merge feature since it works very slowly for huge lists.
For instance, the Bubble uses the merge function for displaying apps, plugins, and templates. Does it work fast? No.
The merge works well at the begging when you have a small number of entries in your database.

-
As a suggestion, you can use X is in [Y, Z]. So, it founds entries that have X = Y or X = Z.
-
A bit complex one, but still achievable.
Let’s say that AA is a User thing type. In the Option sets section, you can create the ThingType option with Dummy as a value. Then, on the User level, you create a field of the ThingType type. Please go to populate a new user with the Dummy type. This User has technical purposes only (you can use a fake email for this entry).
For each record from the FOO table with an empty AA field, you attach your dummy user to that (AA) field.
So, now, you can use AA is in [Dummy user, AB].
A short example. You have a Course system. That course has daily tasks. The first day of the course has the default 10 tasks, which are the same for each user that purchased the course. But, users should have the possibility to create their own tasks. The system should display these custom tasks along to the default tasks.
Instead of using the merge function, for each default task, you attach the dummy user. So, you can use:
Do search for Tasks where User is in [Dummy user, Current user]. This one displays default tasks and tasks created by the current user without any merging options.
1 Like