Using sql server 2000
Date Column datatype is varchar
Table1
ID Date
01 20100122
01 20100123
01 20100124
01 20100125
01 20100126
01 20090127
01 20090128
01 20090129
01 20090130
01 20090131
01 20090201
01 20100202
01 20090203
01 20100204
01 20100205
02
.....
From the above table, from January 26 to February 03, the year was displaying wrong for all the id's
I want to update the year only 2010 instead of 2009 like 20100127 instead of 20000127
Expected Ouput
ID Date
01 20100126
01 20100127
...
01 20100203
...
02
Query like
update table1 set 2010 instead of 2009 where date between 20090126 and 20090203
How to make a query of updating the values.
Need query Help