I am trying to query a table and find tickets that are
open between 5 -30 days, 31-60 days & 61-90
days. I want all 3 queries in one report and I
would like them totaled at the bottom.
My query so far is
select
tabletwo.ticket "Ticket ",
tabletwo.datecreated "Date "
from tableone, tabletwo
where tableone.status = 'Open'
and trunc(tabletwo.datecreated) <= trunc
(sysdate-5)
and trunc (tabletwo.datecreated) >= trunc (sysdate
-30)
My question is (and this may be easy - but I
am a newbie & I'm not even sure where to
start to look )
how do i get the query to pull the data for the 31 -
60 days and the 61-90 days
At this point, my output shows:
Ticket Date
3241 05/31/2002
I would like the output to group the tickets for 5-30
days, then group for 31-60 & then for 61-90
I've tried different things, but obviously not the right
one.
Thanks for any help....
open between 5 -30 days, 31-60 days & 61-90
days. I want all 3 queries in one report and I
would like them totaled at the bottom.
My query so far is
select
tabletwo.ticket "Ticket ",
tabletwo.datecreated "Date "
from tableone, tabletwo
where tableone.status = 'Open'
and trunc(tabletwo.datecreated) <= trunc
(sysdate-5)
and trunc (tabletwo.datecreated) >= trunc (sysdate
-30)
My question is (and this may be easy - but I
am a newbie & I'm not even sure where to
start to look )
how do i get the query to pull the data for the 31 -
60 days and the 61-90 days
At this point, my output shows:
Ticket Date
3241 05/31/2002
I would like the output to group the tickets for 5-30
days, then group for 31-60 & then for 61-90
I've tried different things, but obviously not the right
one.
Thanks for any help....