Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Everyone
I have the following script:
LOAD *,
mid(job_nummer, 11,2) as Gesellschaft;
I would like to include only values that are "AG", "AP" and "DC"
How would I have to script this?
Thank you very much for your help!
LOAD *,
mid(job_nummer, 11,2) as Gesellschaft
Where Match(mid(job_nummer, 11,2), 'AG', 'AP' ,'DC');
SQL SELECT "job_nummer",
jobnr,
"datum_auftrag",
Year ("datum_auftrag") as Jahr,
Month ("datum_auftrag") as Monat,
jobkategorie
FROM EASY.job where "datum_auftrag" is not null;
Hi try below
LOAD *,
mid(job_nummer, 11,2) as Gesellschaft;
FROM EASY.job where "datum_auftrag" is not null
and mid(job_nummer, 11,2) in ("AG", "AP" and "DC);
Regards
ASHFAQ
hm, that one does not work for me...
Hi try this
LOAD *,
mid(job_nummer, 11,2) as Gesellschaft;
FROM EASY.job where "datum_auftrag" is not null
and mid(job_nummer, 11,2) in ('AG', 'AP' and 'DC');
Regards
ASHFAQ
Thank you for your help Ashfaq. Still get an error with this code...
LOAD *,
mid(job_nummer, 11,2) as Gesellschaft
resident <> Where Match(job_number, 'AG', 'AP' ,'DC');
The Load you are trying to do, is that from a sql source or from a resident table?
And, if you are loading from DB then try like Ashfaq as suggested with a small correction: remove And and try like :
in ('AG', 'AP' , 'DC');
And if loading from resident I think it should be:
where match(mid(job_nummer, 11,2),'AG', 'AP', 'DC');
Hi GandalfiGray
I am loading data from a pervasive database.
Thank you for your help...