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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:11:41+00:00 2026-06-03T04:11:41+00:00

My table called lets say table1 looks as follows: Area | Owner | Numberid

  • 0

My table called lets say “table1” looks as follows:

Area | Owner | Numberid | Average

1200 | Fed_G | 998 | 1400

1220 | Priv | 1001 | 1600

1220 | Local_G | 1001 | 1430

1220 | Prov_G | 1001 | 1560

1220 | Priv | 1674 | 1845

1450 | Prov_G | 1874 | 1982

Ideally what I would like to do is sum a few rows in the average column if:
1. they have the same numberid (lets say three rows all had a numberid=1000 then they would have their average added together)
2.Area=1220

Then take that and append it to the existing table, while setting the Owner field equal to “ALL”.

I just started working with Access so I’m not really sure how to do this, this is my horrible attempt:

SELECT ind.Area, ind.Owner, ind.numberid, 
(SELECT SUM([Average]) FROM   [table1] 
WHERE [numberid]=ind.numberid) AS Average
FROM [table1] AS ind
WHERE (((ind.numberid)>="1000" And (ind.numberid)<"10000") AND ((ind.Area)="1220"))

Can anyone guide me through what I should do? I’m not used to sql syntax.

I tried to use “ind” as a variable to compare to.

So far it gives me column names but no output.

  • 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-03T04:11:42+00:00Added an answer on June 3, 2026 at 4:11 am

    I’m still unsure whether I understand what you want. So I’ll offer you this query and let you tell us if the result is what you want or how it differs from what you want.

    SELECT
        t.Area,
        'ALL' AS Owner,
        t.Numberid,
        Sum(t.Average) AS SumOfAverage
    FROM table1 AS t
    GROUP BY t.Area, 'ALL', t.Numberid;
    

    Using your sample data, that query gives me this result set.

    Area Owner Numberid SumOfAverage
    1200 ALL        998         1400
    1220 ALL       1001         4590
    1220 ALL       1674         1845
    1450 ALL       1874         1982
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

lets say I have a table called table1 and it's corresponding columns are col1,
Lets say I have one table called REVIEWS This table has Reviews that customers
Lets say I have a table in MySQL called articles, that has a column
I have a table lets say called FavoriteFruits that has NAME , FRUIT ,
Lets say I have a table called user_table: user_table id first_name last_name gender email
Lets say I have a table called Gamers. Gamers contains the columns GamerID ,
Let's say I have a table called my_table that looks like this: id |
Let's just say I have a table called TABLE_NAME that looks like this: id
Lets say i have table called Orders id qty1 qty2 qty3 ----------------------------------- 1 1
Lets say I have a table called orders, where each row stores an id,

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.