Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Join us at the Cloud Data and Analytics Tour! REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
archana_g
Partner
Partner

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
Partner
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