Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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.
thanks.
But for the 'between' function and 'getdate' function what can i use in the load statement.
Regards
Archana
getdate can be replaced with
today()
transaction_date between date1 and date2 can be
transaction_date > date1 and transaction_date < date2
Kiran Rokkam.
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: