Hi,
Im trying to write an sql statement that takes a start date and an end date and groups by 7 days groups showing the start date of each 7 day group.
example:
select sum(blah), ???
from mytable
where (datex between '2005-07-05' and '2005-07-18')
group by ???
which would give:
2005-07-05 456.87
2005-07-12 567.78
Cheers,
R
Im trying to write an sql statement that takes a start date and an end date and groups by 7 days groups showing the start date of each 7 day group.
example:
select sum(blah), ???
from mytable
where (datex between '2005-07-05' and '2005-07-18')
group by ???
which would give:
2005-07-05 456.87
2005-07-12 567.78
Cheers,
R