Dear All, I'm trying to create a table o records being single days out of given periods. To do so, I'm using for...next loop but get stuck with defining "TO" value in the counter. The script looks like below:
SQL SELECT StartDate, EndDate FROM db1.
LET B = EndDate - StartDate
FOR i=0 TO '$(B)'
StartDate + '(i)' AS Day
FROM db1
When I put marks to B i.e. B = 'EndDate - StartDate' the script starts off but goes beyond the high limit. Could you please help with the code?