Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Table 1:
Load * inline [
Column1
1,
2,
3
];
Table 2:
Load * inline [
Column1
1,
2,
3,
4
] ;
i want output :
column 1
4
Sorry, I accidentally removed the noconcatenate prefix in the edit I made.
A:
Load * inline [
Column1
1,
2,
3
];
B:
NOCONCATENATE Load * inline [
Column1
1,
2,
3,
4
]
where not exists(Column1)
;
drop table A;
This is one way. But how you really want to do it depends on your actual data model.
[Table 1]:
load * inline [
Column1
1,
2,
3
];
[Table 2]:
noconcatenate load * inline [
Column1
1,
2,
3,
4
]
where not exists(Column1)
;
drop [Table 1];
Gives error No records not found @henrikalmen
I did not see you had a blank space in the table names, then they must be surrounded with brackets. So [Table 1] and [Table 2] in the names, and then drop table [Table 1] at the end. (I updated the post above.)
I have used below example
A:
Load * inline [
Column1
1,
2,
3
];
B:
Load * inline [
Column1
1,
2,
3,
4
]
where not exists(Column1,Column1)
;
drop table A;
exit Script;
Output:
No records found.. @henrikalmen
Sorry, I accidentally removed the noconcatenate prefix in the edit I made.
A:
Load * inline [
Column1
1,
2,
3
];
B:
NOCONCATENATE Load * inline [
Column1
1,
2,
3,
4
]
where not exists(Column1)
;
drop table A;
Table1:
Load * inline [
Column1
1,
2,
3
];
NoConcatenate
Table2:
Load * inline [
Column1
1,
2,
3,
4
]
Where not Exists(Column1)
;
Drop Table Table1;