Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have 2 tables. Table 1 contains 100 Store codes. Table 2 contains 1 Store code which is also in Table 1. I want to remove the store code from table 1 that exists in Table 2. I'm not sure of the syntax to do that. Can someone help?
Hi,
Try and adapt this example:
----------------------------
Table1:
load RowNo() as CodeStore
AutoGenerate(100);
Table2:
load RowNo()+100 as StoreCode
AutoGenerate(99);
Concatenate
LOAD 2 as StoreCode
AutoGenerate(1);
Table3:
LOAD CodeStore as saveCode
Resident Table1
where not Exists(StoreCode,CodeStore);
Drop Table Table1;
RENAME Table Table3 to Table1;
RENAME Field saveCode to CodeStore;
-------------------------------
cordially,
Laurent
i'm not sure but try outer join.
Thank Laurent, I have been meaning to say thanks, it was very helpful!