Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
How can i do to identify the values existing in both table A and Table B without joining them by creating new column in table B (if value exist in table A then 1 else 0 ) ?
Thanks for your help
Maybe this is what you want (your French version is clearer):
A:
LOAD * INLINE [
Dossier_ID
1
2
3
4
5
6
];
B:
LOAD
Dossier_ID,
if(exists(Dossier_ID), 1,0) as "B Exists in A"
INLINE [
Dossier_ID
1
5
10
11
12
13
];
Maybe this is what you want (your French version is clearer):
A:
LOAD * INLINE [
Dossier_ID
1
2
3
4
5
6
];
B:
LOAD
Dossier_ID,
if(exists(Dossier_ID), 1,0) as "B Exists in A"
INLINE [
Dossier_ID
1
5
10
11
12
13
];
you can try this......
another one
in bold the differerence with previous answer
MAP:
mapping load Dossier_ID, 1 as flag;
LOAD * INLINE [
Dossier_ID
1
2
3
4
5
6
];
B:
LOAD
Dossier_ID,
ApplyMap('MAP', Dossier_ID, 0) as "B Exists in A"
INLINE [
Dossier_ID
1
5
10
11
11
12
13
];
Thanks a lot it works !
Thanks a lot that's exactly what i need !