If I have table like this called “table”
+--------------+
| id | c1 | c2 |
+--------------+
| 1 | a | 0 |
| 2 | b | 1 |
| 3 | c | 1 |
| 4 | d | 2 |
| 5 | e | 2 |
| 6 | f | 3 |
| 7 | g | 4 |
| 8 | h | 5 |
+--------------+
I want to SELECT ‘c1’ FROM ‘table’ WHERE ‘id’ not in ‘c2’ 2 times
1 Answer