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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:55:14+00:00 2026-05-25T11:55:14+00:00

I am trying to get the average for each MIUID inserted into a table.

  • 0

I am trying to get the average for each MIUID inserted into a table. The relevant tables and column information are as follows:

Table1.[MIU ID], Table1.[Avg RSSI]

and

Table2.MIUID, Table2.MeanNum

If I were simply using a select statement I would do the following:

Select DISTINCT Table1.[MIU ID], Avg(Table1.[Avg RSSI]) as MeanNum
From Table1
GROUP BY Table1.[MIU ID]  

However I need this information to be inserted into a column in Table2. I have tried the following and variations of the following and the errors I’m getting are that it won’t let me use Group By, and another error saying that MeanNum is not part of the aggregate function.

UPDATE Table2  
INNER JOIN Table1
ON Table2.MIUID = Table1.[MIU ID]  
SET Table2.MeanNum = Avg([Table1].[Avg RSSI]);

And the other query I’ve tried is:

UPDATE Table2  
SET Table2.MeanNum = Avg([Table1].[Avg RSSI]) 
WHERE Table2.MIUID = Table1.[MIU ID]
Group By [Table1].[Avg RSSI]

Summary
To reiterate all I’m trying to do is get the average of the Avg RSSI column in Table1 for each distinct MIU ID and insert each value into the appropriate row in Table2.

Note
There is a column in Table2 called AvgNum that could be average to get the same number that needs to go into the MeanNum column if using that would be easier.

I know how to do what I’m trying to do in two steps I would prefer to be able to do it in one sql statement however.

  • 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-25T11:55:14+00:00Added an answer on May 25, 2026 at 11:55 am

    Edit: the code below will not work in MS-Access/Jet. See this link:

    Operation must use an updatable query. (Error 3073) Microsoft Access

    Original answer:

    You could use the original SELECT query in a subquery and join to it. Not syntax checked and I am more familiar with T-SQL than MS-Access, but something like:

    UPDATE 
        t2
    SET 
        t2.MeanNum = sub.MeanNum
    From 
        Table2 t2
        INNER JOIN 
            (
            Select DISTINCT 
                Table1.[MIU ID], 
                Avg(Table1.[Avg RSSI] as MeanNum
            From 
                Table1  
            GROUP BY 
                Table1.[MIU ID] 
            ) sub
            ON sub.[MIU ID] = t2.MIUID 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get the average image from 1000 frames. Each image is
I'm trying to get the AVERAGE from the results of two separate sql queries
I am trying to get the average of the lowest 5 priced items, grouped
In MS Access I am trying to get an average of data but only
I'm trying to get an average for a count on a groupBy by joining
I'm trying to get average of RGB color of Image in php. by gd
I'm trying to get the average number of interactions on my metrics, but this
I'm trying to get the average response time in my graph of apache requests
I am stuck trying to get an overall average elapsed time between 2 dates
I am trying to get the average color of an image. I tried various

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.