Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
archana_g
Partner - Contributor III
Partner - Contributor III

can we use dateadd and datediff functions in a LOAD statement?

hi

i have an sql statement which i have to convert to load statement. in my sql statement i have between, dateadd and datediff functions. how can i use it in load statement.

thanks in advance

Regards

Archana

4 Replies
Not applicable

Archana,

If you are executing the code after SQL statement, no change is required (just to ensure i get it right).

For using inside load, datediff(a,b) can be replaced with a-b (or b-a) appropriatly. All data transfomations in QV can be treated as numeric transformations hence arthemetic operations hold good.

Kiran Rokkam.

archana_g
Partner - Contributor III
Partner - Contributor III
Author

thanks.

But for the 'between' function and 'getdate' function what can i use in the load statement.

Regards

Archana

Not applicable

getdate can be replaced with

today()

transaction_date between date1 and date2 can be

transaction_date > date1 and transaction_date < date2

Kiran Rokkam.

Not applicable

If you are using BETWEEN in a join, QlikView does not have the ability to join result sets (tables) on anything except named columns matching exact values.

The exception is IntervalMatch, which is probabaly what you want to use. Search this forum for IntervalMatch Example to see some good examples of how to use it. My favorite is here:

http://community.qlik.com/message/159315#159315