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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:25:07+00:00 2026-06-17T05:25:07+00:00

Hey everyone I am looking to figure out how to Create an Average over

  • 0

Hey everyone I am looking to figure out how to Create an Average over time with the following select from a table.

MinutesToLoad |Environment | Server | Exchange | StartTime |EndTime

140 ENVIRONMENT_A | Server2 | TAI | 2013-01-06 17:22:44.000 | 2013-01-06 19:42:53.000
135 ENVIRONMENT_A | Server2 | TAI | 2013-01-07 17:23:21.000 | 2013-01-07 19:38:37.000
130 ENVIRONMENT_A | Server2 | TAI | 2013-01-08 17:24:03.000 | 2013-01-08 19:34:17.000
130 ENVIRONMENT_A | Server2 | TAI | 2013-01-09 17:24:42.000 | 2013-01-09 19:34:45.000
140 ENVIRONMENT_A | Server1 | TAI | 2013-01-06 17:22:44.000 | 2013-01-06 19:42:53.000
135 ENVIRONMENT_A | Server1 | TAI | 2013-01-07 17:23:21.000 | 2013-01-07 19:38:37.000
130 ENVIRONMENT_A | Server1 | TAI | 2013-01-08 17:24:03.000 | 2013-01-08 19:34:17.000
130 ENVIRONMENT_A | Server1 | TAI | 2013-01-09 17:24:42.000 | 2013-01-09 19:34:45.000
1430    ENVIRONMENT_A | Server1 | SET | 2013-01-07 00:03:01.000 | 2013-01-07 23:53:37.000
1431    ENVIRONMENT_A | Server1 | SET | 2013-01-08 00:03:36.000 | 2013-01-08 23:54:14.000
1430    ENVIRONMENT_A | Server1 | SET | 2013-01-09 00:04:14.000 | 2013-01-09 23:54:55.000
1430    ENVIRONMENT_A | Server2 | SET | 2013-01-07 00:03:01.000 | 2013-01-07 23:53:37.000
1431    ENVIRONMENT_A | Server2 | SET | 2013-01-08 00:03:36.000 | 2013-01-08 23:54:14.000
1430    ENVIRONMENT_A | Server2 | SET | 2013-01-09 00:04:14.000 | 2013-01-09 23:54:55.000
1   ENVIRONMENT_A | Server2 | QXI | 2013-01-08 03:23:57.000 | 2013-01-08 03:24:02.000
1   ENVIRONMENT_A | Server1 | QXI | 2013-01-08 03:23:57.000 | 2013-01-08 03:24:02.000

MinutesToLoad is really a DATEDIFF(MINUTE,startTime,EndTime) on my select procedure, but the rest are from a table.

The goal result would be to have this result look like this:

MinutesToLoadOverLast10Days - Environment - Server - Exchange 
133                          ENVIRONMENT_A   Server2 TAI 
133                          ENVIRONMENT_A   Server1 TAI 
1430                         ENVIRONMENT_A   Server1 SET
1430                         ENVIRONMENT_A   Server2 SET
1                            ENVIRONMENT_A   Server2 QXI
1                            ENVIRONMENT_A   Server1 QXI

I know I will be using the AVG function but I am lost on trying to figure out to use it to get the result I want.

Thank you in advance.

  • 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-17T05:25:08+00:00Added an answer on June 17, 2026 at 5:25 am
    Select avg(MinutesToLoadOverLast10Days),Environment, Server,Exchange 
    FROM YOUR_TABLE_NAME
    GROUP BY Environment, Server,Exchange 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey everyone, I have the following 'users' table in MySQL: CREATE TABLE `users` (
Hey everyone I'm currently extremely frustrated and can not figure this out have looked
Hey everyone. I'm really struggling to figure out the logic with this one and
Hey everyone, I am getting a heap corruption error I cannot figure out. char
Hey everyone. I'm fairly new to VB.NET and I'm looking to create a module
Hey everyone, I'm back and looking forward to more of your brilliance. I have
Hey everyone. The following is the code that I am using to play random
Hey everyone, I was just wondering if anyone knows how to create a UITableviewCell
Hey everyone, I need to convert the following format into a new format using
Hey everyone, I have a database result that returns from a method. I need

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.