I have below query
set linesize 150
set pagesize 2000
set wrap off
spool filetemp.lst
select
id AS userid,
date_release as outputdate
SUM(counts) AS quanitity
from
counts_table
where
(id like '2%')
and date_release between '02-MAR-09' and '08-MAR-09'
group by
id
/
I am query for record counts between the two specified dates inputed above. I have to keep changing dates to query another week. Is there a way it will give me counts for all the week from jan-2008 till jan-2009 where week starts from Mon to Sun.
thanks
set linesize 150
set pagesize 2000
set wrap off
spool filetemp.lst
select
id AS userid,
date_release as outputdate
SUM(counts) AS quanitity
from
counts_table
where
(id like '2%')
and date_release between '02-MAR-09' and '08-MAR-09'
group by
id
/
I am query for record counts between the two specified dates inputed above. I have to keep changing dates to query another week. Is there a way it will give me counts for all the week from jan-2008 till jan-2009 where week starts from Mon to Sun.
thanks