Hello All,
I am writing a business objects report in freehand SQL that connects to an Oracle data warehouse.
I need the report to refresh every weekday. On Tuesday I need it to include data for fri sat and sun. On Mon Wed Thur and Fri I need the report to look for data from 2 days ago.
I can use sysdate-2 for the Mon Wed Thur and Fri scenarios. But how do I put an If or Case clause into the SQL to decide if the day is a Tuesday?
I'm pretty much a begginner so please explain any script!
Many Thanks
Duncan
I am writing a business objects report in freehand SQL that connects to an Oracle data warehouse.
I need the report to refresh every weekday. On Tuesday I need it to include data for fri sat and sun. On Mon Wed Thur and Fri I need the report to look for data from 2 days ago.
I can use sysdate-2 for the Mon Wed Thur and Fri scenarios. But how do I put an If or Case clause into the SQL to decide if the day is a Tuesday?
I'm pretty much a begginner so please explain any script!
Many Thanks
Duncan