WAS v8.5 > Develop applications > Develop Dynamic and EJB query > Develop applications that use EJB query > EJB query language > WHERE clause

Basic predicates

A basic predicate compares two values.

Basic predicates can be of two forms, for example:

The subselect must not return more than one value and the subselect cannot 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


Use EJB query


+

Search Tips   |   Advanced Search