Supported SQL Statements and Extensions (Salesforce Driver) : SQL Expressions : Operators : Comparison Operators

Comparison Operators
Comparison operators compare one expression to another. The result of such a comparison can be TRUE, FALSE, or UNKNOWN (if one of the operands is NULL). The Salesforce driver considers the UNKNOWN result as FALSE. The following table lists the supported comparison operators.
 
!=
<>
>
<
>=
<=
SELECT * FROM emp WHERE sal IN (SELECT sal FROM emp WHERE deptno = 30)
"Greater than or equal to x" and "less than or equal to y."
SELECT empno, ename, deptno FROM emp e WHERE EXISTS (SELECT deptno FROM dept WHERE e.deptno = dept.deptno)
Tests whether the value of the column or expression is NULL.
ESCAPE clause in LIKE operator
LIKE ’pattern string’ ESCAPE ’c’
The Escape clause is supported in the LIKE predicate to indicate the escape character. Escape characters are used in the pattern string to indicate that any wildcard character that is after the escape character in the pattern string should be treated as a regular character.
This matches all records with names that start with letter 'J' and have the '_' character in them.

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