Basic predicates

A basic predicate compares two values.

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 cannot return a type of an Enterprise JavaBean (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 Concept topic    

Terms and conditions for information centers | Feedback

Last updatedLast updated: Aug 31, 2013 1:23:07 AM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=pix&product=was-nd-dist&topic=cque_basepred
File name: cque_basepred.html