Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
so, I want to calculate some flag values.. basically, I want to do something like this..
if((personName = 1) and (todaysDate >= fieldStartDate) and (todaysDate <= fieldEndDate), 1, 0), as IsThereaRealPersonHereStatus
can I have this complex if statement in the data load script?
Thanks,
Maria
I ended up doing personName * (todaysDate >= fieldStartDate) * (todaysDate <= fieldEndDate) as TheresaRealPersonHereStatus
it seems to work..
syntax is:
if(personName = 1 and todaysDate >= fieldStartDate and todaysDate <= fieldEndDate, 1, 0) as IsThereaRealPersonHereStatus
I ended up doing personName * (todaysDate >= fieldStartDate) * (todaysDate <= fieldEndDate) as TheresaRealPersonHereStatus
it seems to work..