I have a PostgreSQL table with a column that contains arrays:
| col |
| --- |
| {1,5,6} |
| {5,6,7} |
| {5,6} |
| {5,7} |
| {6,7} |
| {1} |
| {2} |
| {3} |
| {4} |
| {5} |
| {6} |
| {7} |
I want to find all arrays in col which are not wholly contained by another array. The output should look like this:
| col |
| --- |
| {1,5,6} |
| {5,6,7} |
| {2} |
| {3} |
| {4} |
I am hoping there is a PostgreSQL way of doing this. Can anyone help please?
#################################################