UNIQUE predicate
- Last Updated: July 25, 2025
- 1 minute read
- DataDirect Connectors
- ODBC
- Apache Cassandra 8.0
- Documentation
Purpose
The Unique predicate is used to determine whether duplicate rows exist in a virtual table (one returned from a subquery).
Syntax
UNIQUE (subquery)
Example
SELECT * FROM DEPT D WHERE UNIQUE
(SELECT DEPTNO FROM EMP E WHERE E.DEPTNO = D.DEPTNO)