Network Deployment (Distributed operating systems), v8.0 > Develop and deploying applications > Develop Dynamic and EJB query > Develop applications that use EJB query > EJB query language > WHERE clause

BETWEEN predicate

The BETWEEN predicate determines whether a given value lies between two other given values.

The syntax for the predicate is:

expression  [NOT]  BETWEEN expression-2  AND expression-3
The expression must not evaluate to a boolean or reference type.

Example: BETWEEN predicate

e.salary BETWEEN 50000 AND 60000

is equivalent to:

e.salary >= 50000  AND e.salary
<= 60000 NOT BETWEEN 'A' AND 'B'

is equivalent to:
< 'A'  OR > 'B'

EJB query language
WHERE clause
Use EJB query


Search Tips   |   Advanced Search