Mixing inner and left outer joins
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Mixing inner and left outer joins
You might want to mix inner and left outer joins in order to filter and reduce the amount of
data you need on the left side of your left outer joins. When mixing these two types of join,
keep in mind that the last inner join in a query forces the results of all prior joins in the
query to be inner joins. This is because any rows that contain the Unknown value
(?) from a prior left outer join are eliminated by the following inner
join. The effect is that the work of the prior left outer joins is wasted, and the same result
is achieved as with contiguous inner joins, but much less efficiently. Therefore, in any
query, keep your inner joins contiguous on the left with any left outer joins contiguous on
the right.