Grooper Help - Version 25.0
25.0.0017 2,127
  • Overview
  • Help Status

Join Clause

CMISQL Element Grooper.CMIS

JOIN Predicates are CMISQL Elements that are used in the JOIN clause of a CMISQL Query.

Remarks

The Join Clause enables you to include additional (secondary) content types in a CMISQL Query by joining them to the primary type. This allows you to retrieve and filter on properties from related types, supporting more complex queries that span multiple content types within a CMIS Repository.

A JOIN clause in CMISQL typically takes the following form:

JOIN <SecondaryType> [AS <Alias>] ON <JoinCondition>
  • <SecondaryType> is the name of the secondary content type to join.
  • AS <Alias> is optional and provides a short name for referencing the joined type.
  • <JoinCondition> defines how the primary and secondary types are related, usually by matching object IDs.

In Grooper, the Join Clause is configured by specifying the secondary type to join, an optional alias, and the join condition. The join condition is typically set to match the cmis:objectId property of the secondary type to the cmis:objectId of the primary type, ensuring that related objects are correctly associated in the query results.

Usage Guidance

  • Use the Join Clause to access properties from secondary types that are not available on the primary type.
  • Assign an alias if you need to reference the joined type with a shorter or more convenient name in SELECT, WHERE, or ORDER BY clauses.
  • Joins are only supported if the repository supports secondary types and the query is not in filter mode.
  • The join condition is automatically constructed to match object IDs, but you may need to adjust the configuration if your repository uses a different relationship model.

Example

SELECT d.name, s.status
FROM Document AS d
JOIN Status AS s ON s.cmis:objectId = d.cmis:objectId

In this example, the Status type is joined to the Document type, allowing the query to return both the document name and its status.


The Join Clause is a powerful feature for building advanced queries that require information from multiple content types. Proper configuration ensures that your queries return the desired results and leverage the full capabilities of your CMIS Repository.

Properties

NameTypeDescription

Used By

Notification