Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> SQL HELP
Hi:
I have a query like this:
select count(order_id), order_date
from order_record where order_date > date1 and order_date < date2
What I want is get the numbers of orders for each day from date1 to
date2.
But what I get is a individaul order list instead of the sum of order of
each day. I guess this may be because I used sysdate when I record the
orders. Some orders might be placed in the same day but at different
time.
My question is how I can get count(order_id) for each day?
Thanks. Received on Thu Aug 20 1998 - 18:52:31 CDT
![]() |
![]() |