colezpapa3
Programmer
I need to query on a date value (last activity date value). The value is will normally be date-1, and date-3 on a Monday. How can I do it in a DB2 select.
I tried the following but it does not work....
DATE_DT = Case dayofweek(current date) When 2 Then current date - 3 day else current date - 1 day End
I tried the following but it does not work....
DATE_DT = Case dayofweek(current date) When 2 Then current date - 3 day else current date - 1 day End