Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I would like to be able to create a flag in the script for all days between the start date of my data (this is based on the yearstart of the minimum date in my import data) and yesterday. The start date can vary depending on the import data.
Likewise I would like to be able to create an additional flag for days between today and the end date of my data. Again the end date can vary depending on the import data.
Does anyone have any ideas?
Hi,
is this one date field? Then you can say
load
...
if(datefield < today(), 'historie', 'future') AS flag;
select sql *
from table
Hope you mean this.
Regards vicky
Hi,
is this one date field? Then you can say
load
...
if(datefield < today(), 'historie', 'future') AS flag;
select sql *
from table
Hope you mean this.
Regards vicky