I have two different collections as shown in table:
I need to search for only small sized T-shirt of Nike brand. The query should be like Size equals Small AND Name equals Nike
but the AND
operation does not give any result and the OR operation gives all four results of small sized t-shirt and nike brand. Both the collections are bound by common ID
field. Is there any way to solve this?
The best possible solution is to denormalize the tables.