When I run queries using DATEADD it seems that the database does not recognize this function. also when I just run select DATEADD(Month, -3, GETDATE()) I\'m get
select DATEADD(Month, -3, GETDATE())
ADD OR SUBTRACT ONE DAY IN DERBY select rundate, {fn TIMESTAMPADD(SQL_TSI_DAY, -1, RUNDATE)} from tst.YOUTH