Some repositories support properties that point to multiple items of another (or the same) item descriptor. For example, the addresses property might point to an array of items, which themselves have address-related properties.

In this case, RQL allows for a subquery to be defined on these properties. For example:

addresses INCLUDES ITEM (zip = "48322" AND state = "MI")

This query means “find all people whose list of addresses includes at least one address whose zip code is 48322 and whose state is MI”.

Copyright © 1997, 2014 Oracle and/or its affiliates. All rights reserved. Legal Notices