SETNEQ 연산자는 한 컬렉션 값이 다른 컬렉션 값과 같지 않은지 알려준다.
collection_operand SETNEQ collection_operand
collection_operand는 항상 하나의 컬렉션 값이 되어야 한다. 첫 번째 collection_operand가 생성하는 컬렉션이 두 번째 collection_operand의 값과 같은지 비교된다. 두 컬렉션의 원소들이 같은지 하나씩 하나씩 검사한다.
집합 {'baseball', 'soccer'}와는 다른 sports 집합을 갖는 모든 city_name을 조회한다. 결과로 공집합도 포함한다.
csql> select city_name,sports from city where sports setneq {'baseball','soccer'};
csql> ;x
=== <Result of SELECT Command in Line 3> ===
city_name sports
============================================
'Seoul' {'baseball', 'basketball', 'bowling', 'golf', 'soccer'}
'Busan' {'baseball', 'basketball', 'scuba', 'soccer'}
'Gwangju' {'baseball', 'basketball', 'soccer'}
'Incheon' {'baseball', 'basketball', 'golf'}
'Suwon' {'basketball', 'soccer'}
'Pyongchang' {'ski', 'snowboard'}
'Jeju' {'golf', 'scuba', 'tennis'}
'Cheonan' {}
'Anyang' {'soccer'}