I have converted varchar to date by using the code —>CAST(CAST("Incentive compensation - Attainment Real Time"."source transactional details"."Base_Tran_DFF_Start_date" as char) as date). This is working fine
Now I am facing the issue as invalid syntax when I add 24 months to the above code. Please suggest Valid syntax and code.
TIMESTAMPADD(SQL_TSI_MONTH, 24, CAST(CAST("Incentive compensation - Attainment Real Time"."source transactional details"."Base_Tran_DFF_Start_date" as char) as date)). —>Causing Issue