Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all member ,i have this table in excel
Task | Type |
T1 | B |
T1 | X |
T2 | B |
T2 | C |
T3 | D |
T3 | X |
T4 | C |
i want to load Task that doesn't have an 'X' Type the result like
T2
T4
how i do that please
thanks
tmp:
load Task
where where upper(Type)='X'
Final:
load Task,
Type
from ..
where not exists (Task)
drop table tmp;
LOAD Task as Exclude
FROM Excel.xls
WHERE Type = 'X';
LOAD Task, Type
FROM Excel.xls
WHERE NOT EXISTS(Exclude, Task);
Add
Where Type <> 'X'
to your load statement at the end
Load
Task,
Type from datasource where Type <> 'X' and Type<> 'x';
try like this...
LOAD Task,
Type
FROM Test.xlsx (ooxml, embedded labels, table is Sheet1)
where not WildMatch(Task&Type,'*X*');
Load * from tablename where Type <>'X'