I have a table with INT
datatype column and my data is something like this
valid_to_day(int)
------------
20150301
20150101
I want to get previous date of this column, if I perform -1 to the above data the data is something like this
valid_to_day
------------
20150300
20150100
Expected data
valid_to_day
------------
20150228
20141231
Please can anyone help
Thanks in advance
satish