Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to obtain keys not in join

Hi all,

I have two tables A and B.

A and B have the column "ID".

I need to obtain the intersection that is shown in the figure:

INTERSECTION.png

How can i write the join and obtain the keys that are in B and not in A?
Thank you.

1 Solution

Accepted Solutions
sunny_talwar

May be like this

A:

LOAD KeyField

FROM A;

B:

LOAD KeyField,

           OtherFields

FROM B

Where Not Exists(KeyField);

DROP Table A:

View solution in original post

2 Replies
sunny_talwar

May be like this

A:

LOAD KeyField

FROM A;

B:

LOAD KeyField,

           OtherFields

FROM B

Where Not Exists(KeyField);

DROP Table A:

Not applicable
Author

Thank you!!