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

Difference between Left Keep and Left Join

Hi,

I want to know the clearcut difference between Left Keep and Left Join

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

In short, if you have two tables and use join, the result is one logical table, but if you use keep, you keep both tables separately.

View solution in original post

3 Replies
Not applicable
Author

I use the left keep to hone down a table to only relevant data to certain field. I am not joining or adding anything to the table, almost like data reduction. See the attachment. Good Luck

Anonymous
Not applicable
Author

In short, if you have two tables and use join, the result is one logical table, but if you use keep, you keep both tables separately.

rohan_mulay
Partner - Creator
Partner - Creator

Consider an example:

Test1:

LOAD * INLINE [

    ID,Salary,l1,l2

    a,1,1,1

    b,2,3,3

    c,1,2,2

];

Test2:

Left keep (Test1)

Load * Inline [

      ID,F3

      a,2

      a,3

      a,4

      b,1

      ];

Refer the screen shot. Check the explanation in the screen shot below.screenshot.JPG.jpg

Please refer the application for above example and check the result by using left join and left keep.