WebSphere Application Server Version 6.1 Feature Pack for Web Services
             Operating Systems: AIX, HP-UX, i5/OS, Linux, Solaris, Windows, z/OS

             Personalize 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: Nov 25, 2008 2:35:59 AM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.wsfep.multiplatform.doc/info/ae/ae/cque_between.html