Supported SQL Statements and Extensions (Salesforce Driver) : Subqueries : UNIQUE Predicate

UNIQUE Predicate
Determines 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)

© 2012 Progress Software Corporation and/or its subsidiaries or affiliates.