Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have the following Code:
Table1:
Load * inline
[
UK, A
1,Q1
2,Q1
3,Q1
4,Q2
5,Q2
6,Q2
7,Q3
8,Q3
9,Q3
10,Q4
11,Q4
12,Q4
];
Left join (Table1)
Load * inline
[
UK, B
1,1
2,1
3,1
4,1
5,1
];
Final_table:
Load
UK,
A,
if(B=1,1,0) as B
resident Table1;
drop Tables Table1;
If I run the script. I end vwith no tables. Goal is to have the Final_table. What is my error?
Hello Markus,
You should use NoConcatenate, since the fields of Table1 and Final_table are the same. Also, I'd use "drop table Table1" instead of "drop tables Table1" since it's a single table you're dropping.
I've attached an example, hope this helps you.
Hello Markus,
You should use NoConcatenate, since the fields of Table1 and Final_table are the same. Also, I'd use "drop table Table1" instead of "drop tables Table1" since it's a single table you're dropping.
I've attached an example, hope this helps you.
Hello, Markus!
Use NoConcatenate before Final_table: