Is it possible to evaluate multiple conditions with joins?
I have the below scenario:
I have 3 json arrays from 3 different sources. They are SAP, Salesforce and DB. These 3 arrays have same columns like "NAME" and "CODE".
How can I get the list of all records which are having the same "NAME" and "CODE" from all the 3 Json arrays?
I have 80K records in each JSON List. I need a solution which is overcome memory issues. Can i use joins for this?
sap = [
{
"SAPID": "D40000",
"NAME": "Delta",
"CODE": "D0012"
},
{
"SAPID": "C30000",
"NAME": "SHPDELS",
"CODE": "C0011"
}
]
DB = [
{
"CODE": "A11",
"NAME": "Alpha",
"DBID": "C10000"
},
{
"CODE": "B12",
"NAME": "Bravo",
"DBID": "B20000"
},
{
"CODE": "C0011",
"NAME": "SHPDELS",
"DBID": "C30000"
},
{
"CODE": "D12",
"NAME": "Delta",
"DBID": "D40000"
},
{
"CODE": "E12",
"NAME": "Echo",
"DBID": "E50000"
}
]
salesforce = [
{
"CODE": "A11",
"NAME": "Alpha",
"SFID": "C10000"
},
{
"CODE": "B12",
"NAME": "Bravo",
"SFID": "B20000"
},
{
"CODE": "C0011",
"NAME": "SHPDELS",
"SFID": "C30000"
}
]
Expected OUTPUT:
{
"CODE": "C0011",
"NAME": "SHPDELS",
"SFID": "C30000"
}