WebSphere Application Server Network Deployment, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Basic predicates

Basic predicates can be of two forms
expression-1  comparison-operator  expression-2
expression-3  comparison-operator ( subselect )

The subselect must not return more than one value and the subselect can not return a type of an EJB reference. Boolean types and reference types only support = and <> comparisons.

Example: Basic predicates

d.name='Java Development'
e.salary > 20000
e.salary > ( select avg(e.salary) from EmpBean e)



Related concepts
EJB query language
WHERE clause

Related tasks
Using EJB query

Concept topic    

Terms of Use | Feedback

Last updated: Mar 17, 2005 4:28:29 AM CST
http://publib.boulder.ibm.com/infocenter/ws60help/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/cque_basepred.html

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