Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
Lets say I have two tables as below;
Table1:
Col1
A
B
C
Table2:
Col2, Col3
A,10
A,20
B,30
The above two tables are not linked. Please don't make any changes. I want to show a straight table like below;
Col1 Sum.Col3
A 30
B 30
C 0
Try this?
Hi Pratyush,
execute with this script ..
table1:
LOAD * INLINE [
Col1
A
B
C
];
table2:
noconcatenate LOAD * INLINE[
Col2, Col3
A,10
A,20
B,30
];
MAP_Col:
Mapping LOAD Col2,
Sum(Col3)
resident table2
group by Col2;
Table:
LOAD Col1,
ApplyMap('MAP_Col',Col1,'0') as Col3
resident table1;
drop table table1;
drop table table2;
Try this?
Hi, I already tried this yesterday night, tried this again today and it worked!! !! Thanks man!!