-
I think a Conjunction is equivalent to an INNER JOIN in SQL, but how do I describe a LEFT JOIN? |
Beta Was this translation helpful? Give feedback.
Answered by
EvgSkv
Apr 28, 2021
Replies: 1 comment 1 reply
-
Left join is done via a combine expression. Like this: JoinedTable(key:, some_value:, joined_value:) :-
MainTable(key:, some_value:),
joined_value AnyValue= (x :- OuterTable(key:, value: x));
I have also added an example in the scripts directory of assembling contacts with the outer join. Please let me know if you have any questions or comments about this. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tkawachi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Left join is done via a combine expression. Like this:
AnyValue
should be used if it is known thatOuterTable
has no more than one row with the given key.If it could have many values that
List
can be used to collect all of them, with appropriate further processing.I have also added an example in the scripts directory of assembling contacts with the outer join.
Please let me know if you have any questions or comments about this.