In SQL Server 2008 I have a user table like the following:
Userid
Username
UserBirthYear(int)
When a user registers to the page, she choses her birthyear. Former programmer (of course!) let the user chose the correct year, but the value which was inserted into the db was DateTime.Now…
Now I need to subtract and save to the database 15 years from each user in coloumn UserBirthYear. There is 500k users. How is this best achieved?
Thanks in advance.
1 Answer