select ansidate(xxx) + '3 months' AS date1
from (
select str_to_date(varchar(max_date),'%Y%m%d') as xxx
from comp_stg_rundate
where row_key = 1
)as s
Max_date is saved as an interger in the comp_stg_rundate table, I want to add 3 months onto this date. The fuction DateAdd won't work as I am using VectorWise.
What version of Vectorwise did you run this against because it works for me on VW 4.0.
However this also works.