I'm trying to solve exactly this: How to check if a cell of type integer array contains a certain value in SQL but for multiple values on boths sides
so something like this:
SELECT id FROM table WHERE ALL(column_of_type_integer_array) IN (2,3,4)
Is there anything like this or do I have to split my values up?
Edit:
table callenges
id| precoditions
-----------------
1 |[]
2 |[]
3 |[]
4 |[2,3]
So I only want to select chalenges where the precodition challenges are fullfilled.
SELECT id FROM callenges WHERE All(preconditions) IN ${solvedChallenges}