General X++ Development
What is the difference between `join`, `outer join`, `exists join`, and `notexists join` in X++?
What is the difference between join, outer join, exists join, and notexists join in X++?
1 answer
Write an answerUse the join type based on what you actually need back.
join— only return records where both sides match.outer join— return the main record even when the joined record does not exist.exists join— only care whether a matching record exists.notexists join— only return records where no matching record exists.
If you do not need fields from the second table and only care whether a row exists, exists join is usually the cleanest option.
Know the solution?
Sign in to contribute an answer and build your community reputation.
Sign in to answer