Avatar of Wayne Barron
Wayne Barron
Flag for United States of America

asked on 

SQL Server change 1978 to 1970 during output

Hello All;

I have a table where the column is a varchar.
(If it needs to change to an INT or Date, please let me know and I will do so.
It is not too late to make that change.)
In the column named = Years
It has the following example.

1978
1965
1985
2017
1962
1998
2012
2002
1958
1978

OK, What I need to do is the following.
For the years in the table, they need to output as

1950
1960
1970
1980
1990
2000
2010
etc...

Thanks.
Wayne
ASPMicrosoft SQL Server

Avatar of undefined
Last Comment
Wayne Barron

8/22/2022 - Mon