Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hiya,
Can anyone tell me where I'm going wrong at the end of my query I am using the following where clause:
Where usage_date > (date(today()-31,'DD/MM/YYYY'))
and usage_date < date(today(),'DD/MM/YYYY')
and Not isnull(usage_date)
It is failing on the second line, the error it is giving me is field "and" not recognised :S ???!!!
I'd play around with the brackets
Where (usage_date > (date(today()-31,'DD/MM/YYYY'))
and usage_date < date(today(),'DD/MM/YYYY')
and Not isnull(usage_date))
Post your full query .
Looks like you got extra bracket after first condition..
Oh, missed that, there is one before date as well.
thanks I hadn't spotted that
I tried again with this script, still same error 😕
QualifY *;
Unqualify clarapw_id;
CARE:
Load
DateTime,
clarapw_id,
usage_date,
bytes_downloaded,
bytes_uploaded
Resident clarapw_usage
Where usage_date > date(today()-31,'DD/MM/YYYY')
and usage_date < date(today(),'DD/MM/YYYY')
and Not isnull(usage_date)
Order by usage_date asc;
Hi,
Try:
Where usage_date > date(today()-31,'DD/MM/YYYY')
and usage_date < date(today(),'DD/MM/YYYY')
and Not isnull(usage_date)
Hi Sarah,
What is usage_date format?
Regards
Neetha
Still works ok in any other document.
Clear the LOAD statement and write it again. Maybe some invisible text character is having fun with you.
Peter
please attach your application