I'm creating a select where I need to check on one of the columns that is of type integer [] if it has one of the values passed in the condition.
For example:
idTarefa | Setores
1 | {1,3,4}
2 | {2}
Knowing that the Sectors column is integer [] (array), how can I make a select request to check if there is a value in another column.
I have tried to do this as follows:
select * from tarefas WHERE IN(ARRAY[2,4])
Thanks in advance for the help.