Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Can rollup help in this situation?
Hi,
I have a table that records number of new registrants in a day. Some records may look like
DAY NUM_REGISTRANTS --- --------------- 1 10 2 5 3 8
I would like to create a SELECT statement such that I select the number of registrants per day, and the total number of registrants up to that point. Can I do that with SQL somehow? Ideally, a SELECT of the above data would yield
DAY NUM_REGISTRANTS TOTAL_REGISTRANTS --- --------------- ----------------- 1 10 10 2 5 15 3 8 23
Thanks for any advice, - Dave Received on Fri Jul 30 2004 - 07:45:19 CDT
![]() |
![]() |