JOIN
INNER JOIN
Join to a class or subquery.
Syntax: [INNER] JOIN <class|subquery> ON <join-expr>
OUTER JOIN
Outer joins are joins that return matched values and unmatched values from either or both classes.
There are three type of OUTER JOIN.
- LEFT JOIN
- RIGHT JOIN
- FULL JOIN
LEFT JOIN
LEFT JOIN returns only unmatched rows from the left class, as well as matched rows in both classes
RIGHT JOIN
RIGHT JOIN returns only unmatched rows from the right class, as well as matched rows in both classes
FULL JOIN
FULL JOIN returns all the rows from both joined classes, whether they have a matching row or not.
JOIN USING
Join using automatically uses relationship definition to join two classes
Syntax: JOIN <end-class> USING <relationship> [FORWARD|BACKWARD]
In following we join from Bis.Element to BisCore.Element using BisCore.ElementOwnsChildElements. Where child element is t0 and parent is t1. If we use FORWARD then t0 will become child and t1 will be parent.
NOTE:
JOIN USINGsyntax is slower for relationships mapped to a Foreign Key using a Navigation Property than joining directly using the navigation property
Last Updated: 11 June, 2025