Discussion Board for collaboration related to QlikView App Development.
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
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.
But for the 'between' function and 'getdate' function what can i use in the load statement.
getdate can be replaced with
transaction_date between date1 and date2 can be
transaction_date > date1 and transaction_date < date2
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: