I am trying to write a query to match more than one element in postgres arrays
| Array1 | Array2 | More than one element Match |
|---|---|---|
| a,b,c,d | a | FALSE |
| a,b,c,d | a,b | TRUE |
| a,b,c,d | a,b,c | TRUE |
| a,b,c,d | a,d | TRUE |
| a,b,c,d | a,c,e | TRUE |
| a,b,c,d | a,b,c,d | TRUE |
| a,b,c,d | a,b,e,d,f | TRUE |
| a,b,c,d | a,z,e,f,g,h | FALSE |
I tried with all of these ops https://www.postgresql.org/docs/current/functions-array.html
Is there any inbuilt way to do it?
d,c,b,aanda,b,c,d? (order of elements in an array matter)aanddmatch.