|
Archives of the TeradataForumMessage Posted: Thu, 27 Mar 2008 @ 16:31:49 GMT
Hello Ravi: I am not entirely sure what you mean by "last six months" but here are two possible ways to approach it in your : 1. March 23 going back to September 23 - WHERE activity_date >= add_months(activity_date,-6) 2. March 23 going back to September 1 - WHERE activity_date >= (add_months(activity_date,-6)/100)*100+1(date) I hope this answers your question. Michael Larkins
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||