Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
i load values from a csv or txt file.
these values are used as a filter to load data from sql server
example:
Table1:
LOAD
KVNr,
FROM
H:\Test_Filter.xls
(biff, embedded labels, table is Sheet1$);
Table2:
SQL SELECT *
FROM "MiamiCRM".dbo.Mitglieder where KVNr in(Table1);
how can i do this ?
Hello,
Please try this...
Table1:
LOAD
KVNr,
FROM
H:\Test_Filter.xls
(biff, embedded labels, table is Sheet1$);
Table2:
SQL SELECT *
FROM "MiamiCRM".dbo.Mitglieder where exists(KVNr,Database_field);
Here just include the name of the Database_field in the where clause.. Database_field is nothing but the field which resembles same as the KVNr..
Try this.
Table1:
LOAD
KVNr
FROM
H:\Test_Filter.xls
(biff, embedded labels, table is Sheet1$);
SELECT *
FROM "MiamiCRM".dbo.Mitglieder where exists(KVNr);
Thanks. So it doesnt work. But i solved the problem with your "exists".
Filter:
LOAD ID
FROM H:\Filter.xls (biff, embedded labels, table is Sheet1$);
Mitglieder:
LOAD
ErstBeginn,
EUVSNR,
GebDat,
KassenID,
KVNr,
KVNR2005,
KassenID&KVNr as ID,
MGID,
Name,
PLZ,
Strasse,
VersArt,
Vorname,
VSNR,
VWStelle,
Wohnort where exists (ID,KassenID&KVNr);
SQL SELECT
ErstBeginn,
EUVSNR,
GebDat,
KassenID,
KVNr,
KVNR2005,
MGID,
Name,
PLZ,
Strasse,
VersArt,
Vorname,
VSNR,
VWStelle,
Wohnort
FROM "CRM".dbo.Mitglieder;
I hope I have given the same solution that you have implemented. Anyway nice to hear that your problem is resolved.
Thanks,
Lavnaya