Skip to content
Advertisement

SELECT * where all of integer[] cell are in a set of values

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:

Is there anything like this or do I have to split my values up?

Edit:

table callenges

So I only want to select chalenges where the precodition challenges are fullfilled.

Advertisement

Answer

Use the operator <@is contained by, e.g.:

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement