PeasNCarrots
Programmer
So I need equiv of IIF for Oracle (I think it is Decode??)
and I need equiv of DateAdd (which can subtract days,months,yrs,weeks,etc.. from Value)
IIF([DOW_CD]='2', DateAdd("d",-5,WND_DT), IIF([DOW_CD]='3', DateAdd("d",-4,WND_DT), IIF([DOW_CD]='4', DateAdd("d", -3,[WND_DT]), IIF([DOW_CD]='5',DateADD("d",-2,[WND_DT]), IIf([DOW_CD]='6',DateAdd("d",-1,[WND_DT]), [WND_DT])))))
and I need equiv of DateAdd (which can subtract days,months,yrs,weeks,etc.. from Value)
IIF([DOW_CD]='2', DateAdd("d",-5,WND_DT), IIF([DOW_CD]='3', DateAdd("d",-4,WND_DT), IIF([DOW_CD]='4', DateAdd("d", -3,[WND_DT]), IIF([DOW_CD]='5',DateADD("d",-2,[WND_DT]), IIf([DOW_CD]='6',DateAdd("d",-1,[WND_DT]), [WND_DT])))))