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

Selective Load - Only lines with an ID existing in another Table

Hello,

Given the following INPUT and OUTPUT sample, what is the right script to do it?

Thank you !

Capture.PNG

3 Replies
crusader_
Partner - Specialist
Partner - Specialist

Hello,

Try to use Where clause with Exists() function... Something like this:

Table1:

LOAD ID

     , Field1

from .....

Table2:

LOAD

     ID-Cusomer

     , Field2

     , Field3

From ....

Where Exists(ID-Customer,ID);

Hope this helps you.

Regards,

Andrei

anbu1984
Master III
Master III

Table1:

LOAD ID

    , Field1

from .....

Table2:

LOAD

    ID-Cusomer

    , Field2

    , Field3

From ....

Where Exists(ID,ID-Customer);

crusader_
Partner - Specialist
Partner - Specialist

Sorry for misprint.

Yes, of course Where Exists(ID,ID-Customer); is correct.

Thanks for correction.

Andrei