Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

date format not accepted in select script

hi,

the following error is displayed when i user this script :-

Error:-

SQL##f - SqlState: 42883, ErrorCode: 7, ErrorMsg: ERROR: function date(date, unknown) does not exist;

Error while executing the query

SQL SELECT

where(date(signed_on ,'DD/MM/YYYY')>= date(date(2014,7,1),'DD/MM/YYYY')) 

the dates look like this in the data base:-

2015-08-20 02:30:59.181032

I've also used "makedate" with no luck.

any help appreciated.

1 Solution

Accepted Solutions
PrashantSangle

Hi,

You  required to_char() or to_num()

Date() is QlikView funtion

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

6 Replies
sunny_talwar

May be try this instead:

Where Date(signed_on ,'DD/MM/YYYY') >= Date(MakeDate(2014,7,1),'DD/MM/YYYY');

or

Where Num(signed_on) >= Num(MakeDate(2014,7,1));

sunny_talwar

Seems like you are doing this in SQL script. May be try this:

Where Num(signed_on) >= 41821;

qlikviewwizard
Master II
Master II

Hi,

Try like this:

Where Num(signed_on)>= num(makedate(2014,7,1))

jagan
Partner - Champion III
Partner - Champion III

Hi,

Date() and MakeDate() are Qlikview functions, in SQL Query you have to use corresponding function of that database, those functions won't work in SQL Queries.

Try


where signed_on >= '2014-07-01'

OR

where signed_on >= '01-JUL-2014'

Regards,

jagan.

PrashantSangle

Hi,

You  required to_char() or to_num()

Date() is QlikView funtion

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Anonymous
Not applicable
Author

thanks Max.  can you help me with my data not flowing through to my dashboard question please