renee35
MIS
- Jan 30, 2007
- 199
I am trying to get the previous quarter close date in the below case statement:
Here are the fields:
pdyear pdid closedt
2007 1 2007-4-18
2007 2 2007-07-18
2007 3 2007-10-24
2007 4 2008-1-28
The case statement would need to be such that:
Case when pdid = 2 then closedt for pdid 1 (I need to return 2007-4-18)?
That is what I am trying to achieve..
Thanks a bunch!!
-T
Here are the fields:
pdyear pdid closedt
2007 1 2007-4-18
2007 2 2007-07-18
2007 3 2007-10-24
2007 4 2008-1-28
The case statement would need to be such that:
Case when pdid = 2 then closedt for pdid 1 (I need to return 2007-4-18)?
That is what I am trying to achieve..
Thanks a bunch!!
-T