Oracle BI: Select all records from last week
问题 I need to get all records with a date between Sunday and Saturday last week, inclusive, for whatever date the query is run. For today, April 19th 2011, that would be from April 10th to April 16th. When I entered the dates manually and converted the filter to SQL, I got the following syntax: RESOLVED_DATE BETWEEN timestamp '2011-04-10 00:00:00' AND timestamp '2011-04-16 00:00:00' I'm not even sure this is correct, because it seems to exclude dates on the 16th itself (shouldn't the time be 23