Update Query Date Subtract

Ciprian

Registered User.
Local time
Tomorrow, 01:37
Joined
Sep 14, 2011
Messages
50
I'm trying to update column 2 based on column 1, by subtracting 1 month.

exaple:

Column1 -----> Column2
01-09-2011 01-08-2011
02-09-2011 02-08-2011
01-10-2011 01-09-2011

So any idea how to write the Update Query ?
 
This is data that should not be stored (violation of rules of normalization and potentially a source of incorrect data - referential integrity). It should be in a select query that is used instead of the table directly when the value is needed.
 

Users who are viewing this thread

Back
Top Bottom