A client has the following specification for record selection based on a report being run relative to today's date:
Daily = M, Tu, W, Th, F where
Monday execution start date is populated with the prior Friday date, and end date is populated with the prior Sunday date.
the Tuesday execution start and end dates are populated with the prior Monday date.
the Wednesday execution start and end dates are populated with the prior Tuesday date.
the Thursday execution start and end dates are populated with the prior Wednesday date.
the Friday execution start and end dates are populated with the prior Thursday date.
I'm thinking a DECODE is required to determine what today's DAY is then select out the {field_date} associated with the rules above. Been away from Oracle too long - anyone have a construct I could use to sort this out?
Appreciate any guidance....
Crystal Reports Design/training/Consultation
ecsdata@ecsdata.com
Daily = M, Tu, W, Th, F where
Monday execution start date is populated with the prior Friday date, and end date is populated with the prior Sunday date.
the Tuesday execution start and end dates are populated with the prior Monday date.
the Wednesday execution start and end dates are populated with the prior Tuesday date.
the Thursday execution start and end dates are populated with the prior Wednesday date.
the Friday execution start and end dates are populated with the prior Thursday date.
I'm thinking a DECODE is required to determine what today's DAY is then select out the {field_date} associated with the rules above. Been away from Oracle too long - anyone have a construct I could use to sort this out?
Appreciate any guidance....
Crystal Reports Design/training/Consultation
ecsdata@ecsdata.com