EMPTY collection predicate

You can use the EMPTY collection predicate to test if a multivalued relationship has no members.

Use the following syntax:
collection-valued-path-expression  IS [NOT]  EMPTY

Example: Empty collection predicate

To find all departments with no employees:
SELECT OBJECT(d) FROM DeptBean d  WHERE  d.emps IS EMPTY



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 2:56:59 AM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=pix&product=was-nd-dist&topic=cque_emptycoll
File name: cque_emptycoll.html