WebSphere Application Server Network Deployment, Version 6.0.x   Operating Systems: AIX, HP-UX, Linux, Solaris, Windows
             [TIP: Focusing the table of contents and search results]

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
e.name NOT BETWEEN 'A' AND 'B' 
is equivalent to:
e.name < 'A'  OR e.name > 'B'



Related concepts
EJB query language
WHERE clause
Related tasks
Using EJB query
Concept topic    

Terms of Use | Feedback

Last updated: Mar 8, 2007 8:14:28 PM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/cque_between.html

© Copyright IBM Corporation 2002, 2006. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)