I am not an experienced in using SQL Server.
I am trying to compare date values, which are stored as varchar on tables, with 1 month back or 1year forward or 2days back from the system date, in different scenarios.
I have tried using DATEDIFF and CONVERT. I keep getting syntax errors.
Please could someone help me with this.
Many thanks
I am trying to compare date values, which are stored as varchar on tables, with 1 month back or 1year forward or 2days back from the system date, in different scenarios.
I have tried using DATEDIFF and CONVERT. I keep getting syntax errors.
Please could someone help me with this.
Many thanks