im new at programming in Pig Latin and i have a question.
Let's say i have the following two relations (A and B):
Relation A: https://i.stack.imgur.com/Aa5Rd.png
Relation B: https://i.stack.imgur.com/m467q.png
Now, the Relations should be joined, but only when in A a key (id) exists. Otherwise not. So the Result should look like:
Relation Result: i.stack.imgur.com/3elgh.png
(i cannot post more than 2 links)
How i can solve that?
My approach result = JOIN A BY id, B BY id; because it creates a result relation with all ids & texts :/
Thank you very much in advance,
Stefanos