Last week first day and end day [message #371202] |
Thu, 14 September 2000 15:22 |
mimoni
Messages: 1 Registered: September 2000
|
Junior Member |
|
|
Assuming sunday to be the first day of the week, for any given date, what is the sql to find the Last week first date and Last week end date.
|
|
|
Re: Last week first day and end day [message #371203 is a reply to message #371202] |
Thu, 14 September 2000 16:59 |
Vjeko
Messages: 15 Registered: August 2000
|
Junior Member |
|
|
This is improvisation, but works fine:
SELECT sysdate-6-to_number(to_char(sysdate,'D')) first_day_last_week,
sysdate-to_number(to_char(sysdate,'D')) last_day_last_week
FROM sys.dual;
|
|
|
|