Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
i have 2 tables :
ALLProducts:
LOAD * INLINE [
id, name,category
10, Product1,2
11, Product2,3
12, Product3,2
13, Product4,1
];
BannedProducts:
LOAD * INLINE [
id, name,category
10, Product1,2
];
i want to get only the list of products that are nor banned
i tried where not exists but doesn't work , is there any other function ?
any idea ?
It sure works:
BannedProducts:
LOAD * INLINE [
id, name,category
10, Product1,2
];
ALLProducts:
NoConcatenate
LOAD
*
where not exists(id)
;
LOAD * INLINE [
id, name,category
10, Product1,2
11, Product2,3
12, Product3,2
13, Product4,1
];
Drop Table BannedProducts;
First, load the table of the banned products, after that load the table of all products with condition
where not exists(id)
After that, you can drop the table of banned products.
Regards,
Michael
the script would look something like:
BannedProducts:
LOAD * INLINE [
id, name,category
10, Product1,2
];ALLProducts:
NoConcatenate
LOAD IF(not Exists(id),id) as id, name, category INLINE [
id, name,category
10, Product1,2
11, Product2,3
12, Product3,2
13, Product4,1
];Drop Table BannedProducts;
Don't work !
Work but still have Product1 in the list of ALLProducts
It sure works:
BannedProducts:
LOAD * INLINE [
id, name,category
10, Product1,2
];
ALLProducts:
NoConcatenate
LOAD
*
where not exists(id)
;
LOAD * INLINE [
id, name,category
10, Product1,2
11, Product2,3
12, Product3,2
13, Product4,1
];
Drop Table BannedProducts;
Thank's a lot sir
No problem. You possibly missed something small first time...
What's if i would like to keep the BannedProducts to compare categories? reload it again?
this?
................
ALLProducts:
NoConcatenate
LOAD id, name, category INLINE [
id, name,category
10, Product1,2
11, Product2,3
12, Product3,2
13, Product4,1
] where not Exists (id);