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: 
hopkinsc
Partner - Specialist III
Partner - Specialist III

Expression in where clause on JDE date field

Hi all,

i am trying to add a WHERE clause in my script to restrict a date by year. its JDE julian dates and i am using the following

F4111:

SQL SELECT *

FROM PRODDTA.F4111 where right(Date(MakeDate(1900+left(text(ILTRDJ),len(ILTRDJ)-3))+right(text(ILTRDJ),3)-1) ,2)=15;

;

the expression right(Date(MakeDate(1900+left(text(ILTRDJ),len(ILTRDJ)-3))+right(text(ILTRDJ),3)-1) ,2) returns the final 2 characters of the date, i.e. 15.

does anyone know why this isnt working?

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Unless your JDE database understands Qlikview script you shouldn't use functions like MakeDate. Use only the SQL functions that your JDE database does support.


talk is cheap, supply exceeds demand