Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hey, I have a table that contains 2 columns named AQPART and AQMTLP.
I only want to fetch those records from AQPART, which are present in column AQPART and not present in column AQMTLP. Rest all records should be skipped.
Please help me achieve this.
@risabhroy_03 You can perform in 2 methods. I have listed both the methods below. You can pick anyone.
Method1:
NoConcatenate
Table1:
Load * Inline [
AQPART,AQMTLP
AA27266,MTLA64190
AA31578,A46402
AA34039,AA37259,
AA37259,B0A5318
];
NoConcatenate
Table2:
Load * Resident Table1
where exists(AQMTLP,AQPART);
Drop table Table1;
Method2:
NoConcatenate
Table1:
Load * Inline [
AQPART,AQMTLP
AA27266,MTLA64190
AA31578,A46402
AA34039,AA37259,
AA37259,B0A5318
];
Inner join(Table1)
Load AQMTLP as AQPART
Resident Table1;
If this resolves your issue, please like and accept it as a solution.
@risabhroy_03 You can perform in 2 methods. I have listed both the methods below. You can pick anyone.
Method1:
NoConcatenate
Table1:
Load * Inline [
AQPART,AQMTLP
AA27266,MTLA64190
AA31578,A46402
AA34039,AA37259,
AA37259,B0A5318
];
NoConcatenate
Table2:
Load * Resident Table1
where exists(AQMTLP,AQPART);
Drop table Table1;
Method2:
NoConcatenate
Table1:
Load * Inline [
AQPART,AQMTLP
AA27266,MTLA64190
AA31578,A46402
AA34039,AA37259,
AA37259,B0A5318
];
Inner join(Table1)
Load AQMTLP as AQPART
Resident Table1;
If this resolves your issue, please like and accept it as a solution.