I have a sqlite table with following columns
SELECT * FROM table_one
+------+----------+--------------------------------------------------------+
| ID | name | dates |
+------+----------+--------------------------------------------------------+
| 1001 | SINGLE | [{"dayOfMonth":5,"month":9}] |
| 1002 | MULTIPLE | [{"dayOfMonth":2,"month":9},{"dayOfMonth":3,"month":9} |
+------+----------+--------------------------------------------------------+
Now if I query either one of below return correct info:
SELECT * FROM table_one WHERE dates LIKE '%dayOfMonth":3%'
SELECT * FROM table_one WHERE dates LIKE '%dayOfMonth":5%'
But I want to combine this two statement in one single line. I've tried this answer but didn't worked for me.
Here dates is a variable length and not exact. The IN
operation is also not working.
I want to perform this operation List<Item> getAllOf(List<String> queryStrings)
which will return me a list of all matched item. What is the easiest way?