Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8523719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:29:21+00:00 2026-06-11T07:29:21+00:00

I have a simple query that spits out new_users by day… Select trunc(create_dtime),Count(Player_Id) as

  • 0

I have a simple query that spits out new_users by day…

Select trunc(create_dtime),Count(Player_Id) as New_Users
  From Player
 Where Trunc(Create_Dtime) >= To_Date('2011-APR-22','yyyy-mon-dd')
 Group By Trunc(Create_Dtime)
 Order by trunc(Create_Dtime)

I would like this to total the new_users as each day goes on…so for example if with the current query spits out a result with:

Apr 22
Apr 23
Apr 24 of 1000 new users each day...

I want this new query to say:

Apr 22 = 1000 New users
Apr 23 = 2000
Apr 24 = 3000

…and so on until the very last date(today) has the total number of new users in one single row.

Let me know if this is clear enough.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T07:29:23+00:00Added an answer on June 11, 2026 at 7:29 am

    I would do this using a cumulative sum, which Oracle happily supports through the analytic functions:

    select thedate, New_Users,
           sum(New_Users) over (order by thedate) as Cumulative_New_Users
    from (Select trunc(create_dtime) as thedate, Count(Player_Id) as New_Users
          From Player
          Where Trunc(Create_Dtime) >= To_Date('2011-APR-22','yyyy-mon-dd')
          Group By Trunc(Create_Dtime)
         ) t
    Order by 1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple query that looks like select id, name from mytable where
I have a simple query that produces the below results: SELECT month,transporttype,count(transporttype) as loads
I have this simple query that runs in 0.55s. SELECT tr.* FROM Tournament_Result tr,
I have a simple MySQL query that looks something like this SELECT * FROM
I have a simple query like so: SELECT * FROM orders that returns all
Lets suppose that I have the following simple query var q = from p
I have the following simple query that I execute on a SQLite3 database: SELECT
I have a very simple query that is not much more complicated than: select
I have a simple query in DQL that selects 3 columns: $qb->select(c.zip_code, c.name, s.state)
I have a simple MySQL query that selects all columns from the table based

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.