Scopes usually define the statement's execution field. There are three types of scopes, shallow, deep and inner scopes. Shallow scopes include only the direct descentants of a container, unlike deep scopes which include all the descentants of a container, traversing the folder recursively. When the scope type identifier is ommited, then the scope becomes shallow. The STRING literal must be the container ID or the full path to the container.
Inner scopes are valid only for subqueries. Using an inner scope to a top level query, raises an OQLError? exception. The STRING literal must be the name of a ReferenceN?, RelatorN? or Composition attribute.
Valid scopes are:
'/', which is equivalent to
deep('')includes all the objects in the database
'/Administrative Tools/Users and Groups'is equivalent to
'users'which is the ID of the 'Users and Groups' container.