by Robert Sample » Mon Aug 14, 2017 11:52 pm
Google is your friend. Googling db2 date arithmetic will give you LOTS of reading material that will tell you what you want to know. This is a HELP forum, not a WRITE-THE-CODE-FOR-YOU forum. If you want help, post what you've tried, the results you got and how they did not match what you expected. If you want somebody to write code for you (what you posted is asking somebody to write your code), expect to pay the going rate of $500 to $2000 US per day for assistance.
And in your original post -- you did not explain where xx.END_DATE came from, you did not explain which programming language you are doing this with, you did not explain what condition you're using, and perhaps most importantly you did not specify WHAT 1 to subtract from the date: 1 day? 1 hour? 1 month? 1 year? 1 second? You need to use Google for a number of hours, reading what you find, to understand what you need to do. There are not a lot of short cuts to learning.