Is it possible to check if multiple values are in the column and based on that filter out one of them using a WHERE clause?
Obviously this code won't work, but here is the logical example of what I'd like to achieve:
SELECT *
FROM table
WHERE IF column includes ('value1', 'value2') THEN NOT IN 'value1'
example with conditions True:
| column |
|---|
| value1 |
| value1 |
| value2 |
| value2 |
| value1 |
| value3 |
| value4 |
| value4 |
result:
| column |
|---|
| value2 |
| value2 |
| value3 |
| value4 |
| value4 |
Side note: process has to be automated as in one upload, dataset might contain value1 which should remain in place and in the next one both of them will be populated and only value2 will be valid.

SELECT * FROM table WHERE POSITION('value1', column) > 0 AND POSITION('value2', column) > 0What do you mean by "filter out"?