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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem with "Where" clause

Hello everyone

I have the following code that gives me a problem with the "Where" clause:

SQL SELECT "job_nummer",

    jobnr,

    "datum_auftrag",

    Year ("datum_auftrag") as Jahr,

    Month ("datum_auftrag") as Monat

   

FROM EASY.job where "datum_auftrag" = date;

With the "Where" clause I would like to exclude entries that do not have a date.

Could someone help me with this?

Thank you very much in advance...

24 Replies
Not applicable
Author

But apparently IsDate checks for date formats yyyy-m-d and yyyy/m/d. my format is dd.mm.yyyy.


Thus I get an error.


sorry for being such a pain...

eduardo_sommer
Partner - Specialist
Partner - Specialist

As you can see, from the manual, yor format is recognized as valid.

Eduardo

Not applicable
Author

this is what i get as error message:

SQL##f - SqlState: 37000, ErrorCode: 0, ErrorMsg: [Pervasive][ODBC Client Interface][LNA][Pervasive][ODBC Engine Interface]Syntax Error: SELECT "job_nummer",

    jobnr,

    "datum_auftrag",

    Year ("datum_auftrag") as Jahr,

    Month ("datum_auftrag") as Monat

   

FROM EASY.job Where ISDATE("datum_auftrag"<< ??? >>)

SQL SELECT "job_nummer",

    jobnr,

    "datum_auftrag",

    Year ("datum_auftrag") as Jahr,

    Month ("datum_auftrag") as Monat

   

FROM EASY.job Where ISDATE("datum_auftrag")

thanks for investing so much thought eduardo...

eduardo_sommer
Partner - Specialist
Partner - Specialist

Hi Jan,

I love these chalenges, hahaha

Let's give a last try: The ODBC can be passing the double quotation marks within the ISDATE function. Try using ISDATE(datum_auftrag) without the quotation marks.

Don't give up!

Eduardo