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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:09:08+00:00 2026-06-12T09:09:08+00:00

The data is available free from the IRS for income data by zip code

  • 0

The data is available free from the IRS for income data by zip code for 2008.

A00100 is the Adjusted Gross Income (aka AGI), agi_class is the size of the adjusted gross income. This ranges from 1 to 7:

1 = 'Under $10,000'
2 = '$10,000 under $25,000'
3 = '$25,000 under $50,000'
4 = '$50,000 under $75,000'
5 = '$75,000 under $100,000'
6 = '$100,000 under $200,000'
7 = '$200,000 or more '

“Number of Returns” is the Number of tax returns for that agi_class.

mysql> select A00100,zipcode,agi_class,N1 as 'Number of Returns' from taxbyzip2008 where     zipcode="10021";
+-------------+---------+-----------+-------------------+
| A00100      | zipcode | agi_class | Number of Returns |
+-------------+---------+-----------+-------------------+
|     -954234 | 10021   |         1 |              3589 |
|    43243455 | 10021   |         2 |              2521 |
|   149940475 | 10021   |         3 |              3939 |
|   243853640 | 10021   |         4 |              3936 |
|   262995399 | 10021   |         5 |              3025 |
|   751195421 | 10021   |         6 |              5333 |
| 10677437299 | 10021   |         7 |              7477 |
+-------------+---------+-----------+-------------------+

I need to come up with the Average Adjusted Gross Income for each zip code. How can I do this in MySQL? 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-12T09:09:09+00:00Added an answer on June 12, 2026 at 9:09 am
    select zipcode, 
           avg(A00100) as average_income
    from taxbyzip2008 
    group by zipcode
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a .NET API available to get data from your XBox Live account?
How to query data from table_1 which ID is not available on table_2 that
The man page of epoll_ctl() says about EPOLLPRI : There is urgent data available
I'm writing a special data structure that will be available in a .NET library
In my case server is not available and so I can not read data
i am working on monitoring com port and get data as it is available,
Data comes from Wordpress metabox in a form of single long array. The data
I am using SqlDataReader to read data from SQL Server. However sometimes I want
Right now, I have developed an android app that is available free on the
is there any free open source tools available for viewing TIN (triangular irregular networks)

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.