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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:35:48+00:00 2026-05-23T19:35:48+00:00

I apologize for this school-book question but I’ve been working on this SQL query

  • 0

I apologize for this school-book question but I’ve been working on this SQL query the whole day and I’m on the last leg of this project but it’s late and my head just refuses to work 🙂 I’d appreciate if someone could check the math for me:

I have a device that can be in 3 power states & run at full power. Each state has its own power consumption. I get how long each power state was on during the day (from my SQL queries). What I need is to calculate savings in percent for each device.

So here you go, let’s assume:

Power State1:
Power Consumption = P1
Time On = T1

Power State2:
Power Consumption = P2
Time On = T2

Power State3:
Power Consumption = P3
Time On = T3

When not in any power state (Full Power):

Power Consumption = PFull
Time On = TFull

So to calculate energy used if running at full power I do:
(i.e. all calculations are done in reference to a single day)

E(Full_Power_24hr) = PFull * 24hrs;

And to get the energy actually used:

E(used) = PFull * TFull + P1 * T1 + P2 * T2 + P3 * T3;

And lastly, energy saved (per 24-hr period):

E(saved) = E(Full_Power_24hr) - E(used);

What I need to do now, is to calculate percentage-wise what is the savings per each power state?

So is it:

Share_S1 = 1 / (P1 * T1 / E(Full_Power_24hr));
Share_S2 = 1 / (P2 * T2 / E(Full_Power_24hr));
Share_S3 = 1 / (P3 * T3 / E(Full_Power_24hr));

Percent_Share_S1 = 100 * Share_S1;
Percent_Share_S2 = 100 * Share_S2;
Percent_Share_S3 = 100 * Share_S3;
  • 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-05-23T19:35:49+00:00Added an answer on May 23, 2026 at 7:35 pm

    I think, you would first need to calculate the percentage saved over all states. And then divide that up between the saving states according to the time spent in each state.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I apologize that this is a dumb question, but I have been pulling my
I apologize if this question is too basic, but I just can't figure out
I apologize if this is a basic question, however I have been searching on
I apologize if this has already been asked a different way but I couldn't
I apologize for this newbie question, but I'm looking for a simple solution. I
I apologize if this is an obvious question, but I'm going through the Java
I apologize if this is a newbie question, but I cannot figure out why
I'm new to SSRS, so I apologize if this question is too simple: I
I apologize in advance if this question seems remedial. Which would be considered more
Let me apologize in advance for the simplicity of this question (I heard Jeff's

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.