inside &SQL() only SQL compatible code is allowed
so $ZDT($H,3,1,3) is not known in SQL
you may do
&sql(SELECT {fn TIMESTAMPDIFF(SQL_TSI_HOUR,:%myts,:%tx)})
mind the colon :%myts and :%tx to pass global accessible variables to embedded SQL
- Log in to post comments
.png)
.png)