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 8263399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:05:16+00:00 2026-06-08T04:05:16+00:00

There are hourly data is captured in my table. I want to sum of

  • 0

There are hourly data is captured in my table. I want to sum of these data for a day. For example

this is my table data

| date             | value |

| 12.03.2010 01.pm |    10 |
| 12.03.2010 02.pm |    20 |
| 12.03.2010 03.pm |    15 |
| 13.03.2010 04.pm |    15 |
| 13.03.2010 05.pm |    25 |
| 13.03.2010 08.pm |    35 |

And I want to get sum of values in a day.

12.03.2010 total_usage = 45
12.03.2010 total_usage = 75

How Can I do this. How can I get sum of hourly data in a day.

Thanks.

  • 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-08T04:05:19+00:00Added an answer on June 8, 2026 at 4:05 am
    myCollection.GroupBy(x => x.date.Date).Select(x => new { Date= x.Key, Total = x.Sum(y => y.value) });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There is a column that exists in 2 tables. In table 1, this column
There are nice SO question and answers about this issue, but these options didn't
I have an array representing hourly temperature data, and want to compute daily maxima
I want to extract some hourly data from rrdtool databases in order to create
Following up my previous question about aggregating hourly data into daily data, I want
Please refer to this SQLFiddle: http://sqlfiddle.com/#!2/9db4f Table 'rate' stores hourly chargeout rates for job
There are two table s : one is the master and one the detail
I am working in PHP/MySQL. I have a table in my database called hourly
There must be a very easy way to do this but I don't know
Before you ask, yes I need to show this much data. stl() requires two

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.