State Planner

Massachusetts · November 23, 2026

Largest Private Sector by County, 2024

This is a real answer State Planner produced from Massachusetts’s public data.

Ask this question, or one like it, in State Planner now. Sign up to try every feature free for 7 days, no card needed, and the question will be waiting in your new chat to change or send.

Ask this in State Planner →
  1. Employment by NAICS code: which sectors employ the most in Massachusetts? Map each county’s largest sector.

    Now the county map of each county's largest private sector.


    Health Care and Social Assistance is the largest private-sector employer in Massachusetts, and the largest sector in 11 of the 14 counties. Of the other three counties, Professional, Scientific and Technical Services is largest in , and Accommodation and Food Services is largest in the three Cape and Islands counties.

    These are annual average jobs from BLS's Quarterly Census of Employment and Wages (QCEW), covering private employers only. I used 2024 because it's the newest year with every statewide sector published. In the 2025 file, BLS withheld Construction, Transportation and Warehousing, Information, Utilities, and Agriculture, so a 2025 ranking would leave them out. QCEW counts only jobs covered by unemployment insurance, so the self-employed aren't included. Jobs are counted where the workplace is, not where the worker lives.

    Statewide: which sectors employ the most (2024, private)

    Massachusetts private jobs by NAICS sector, 2024⬇ CSV⬇ Image

    Top private sectors in Massachusetts, 2024 (QCEW)

    RankNAICS sectorAnnual average jobs
    1Health Care and Social Assistance (62)648,228
    2Professional, Scientific and Technical Services (54)371,502
    3–5Retail Trade (44-45), Accommodation and Food Services (72), Manufacturing (31-33)each roughly 225,000–325,000
    6Construction (23)170,524
    7–10Administrative and Waste Services (56), Finance and Insurance (52), Educational Services (61), Wholesale Trade (42)each roughly 115,000–180,000

    The chart shows all 19 sectors. Statewide there were about 3.18 million private jobs in 2025. Government adds about 450,000 more (federal, state and local), but QCEW doesn't break government jobs into the same private sectors.

    Compared with the nation (location quotients, 2025):

    • Educational Services: 2.1× the national share of jobs.
    • Professional, Scientific and Technical Services: 1.42×.
    • Health care: 1.23×.

    Private colleges and hospitals are counted in these private sectors.

    By county: the largest private sector

    Largest Private Sector by County, 2024Largest Private Sector by County, 2024⬇ Image

    Map legend: each county is filled by its largest private sector in 2024:

    • Blue: Health Care and Social Assistance
    • Purple: Professional, Scientific and Technical Services
    • Orange: Accommodation and Food Services

    Click a county to see the jobs in its top two sectors and the top sector's share. The text tags mark Middlesex (MID), Suffolk (SUF), Barnstable (BAR), Dukes (DUK) and Nantucket (NAN).

    Largest and second-largest private sector by county, 2024 (QCEW)

    CountyLargest sectorJobsSecond sectorJobs
    Professional, Scientific and Technical159,395Health Care and Social Assistance125,576
    Health Care and Social Assistance153,540Professional, Scientific and Technical99,564
    Health Care and Social Assistance72,626Retail Trade37,057
    Health Care and Social Assistance64,038Manufacturing39,526
    Health Care and Social Assistance55,899Retail Trade38,603
    Health Care and Social Assistance52,939Retail Trade19,022
    Health Care and Social Assistance42,694Retail Trade31,467
    Health Care and Social Assistance33,292Retail Trade26,229
    Accommodation and Food Services15,677Health Care and Social Assistance15,098
    Health Care and Social Assistance12,092Retail Trade7,212
    Health Care and Social Assistance10,341Retail Trade7,387
    Health Care and Social Assistance4,112Manufacturing3,294
    Accommodation and Food Services1,727Construction1,126
    Accommodation and Food Services1,390Retail Trade1,320

    Things to note:

    • Close calls: In Barnstable and Dukes, the top two sectors are within about 600 and 70 jobs of each other.
    • Withheld figures: BLS withheld some sector figures to protect employers' confidentiality: six in Nantucket, two each in Barnstable, Dukes and Suffolk, and one in Bristol. The withheld sectors can add up to at most 617 jobs in Nantucket, 141 in Dukes and 394 in Barnstable, fewer than the leading sector has in each case. So no withheld sector could be the largest, and the ranking holds.
    • Jobs not placed in a county: About 94,000 private jobs couldn't be assigned to a county (area code 25999). They're in the statewide totals but not in any county's figures.

    If you'd rather count all employers, I can add government jobs (for example, public schools and state hospitals) to the sector totals. I can also rank by location quotient to show what each county specializes in, rather than its largest sector.

This map can’t be panned or zoomed here. In State Planner, you can pan and zoom every map.

Layers

  • 14
    • 10
    • 1
    • 3

Click anything on the map for its details.

The transcript below the answer shows every query it ran. Shapefiles of every layer, at full detail, can be downloaded in State Planner: sign up to ask your own question and export any map.

Ask your own question about Massachusetts

Send takes you to sign up (every feature free for 7 days, no card needed), or to sign in if you have an account. Your question will be waiting in your new chat.

Transcript

What follows is the transcript of this chat as State Planner generated it. It is here to show how the answer above was arrived at: every query State Planner ran, what each one returned, and where the data came from.

transcript.md

↑ Contents

State Planner chat · https://stateplanner.com

  • State: Massachusetts (MA)
  • Started: November 23, 2026, 4:01 PM UTC
  • Runtime: 1 min 8 sec
  • Status: completed
Prompt

Employment by NAICS code: which sectors employ the most in Massachusetts? Map each county’s largest sector.

Model: Anthropic: Claude Opus 5.5 (anthropic/claude-opus-5.5, via openrouter), high effort

Response

Now the county map of each county's largest private sector.


Health Care and Social Assistance is the largest private-sector employer in Massachusetts, and the largest sector in 11 of the 14 counties. Of the other three counties, Professional, Scientific and Technical Services is largest in Middlesex County, and Accommodation and Food Services is largest in the three Cape and Islands counties.

These are annual average jobs from BLS's Quarterly Census of Employment and Wages (QCEW), covering private employers only. I used 2024 because it's the newest year with every statewide sector published. In the 2025 file, BLS withheld Construction, Transportation and Warehousing, Information, Utilities, and Agriculture, so a 2025 ranking would leave them out. QCEW counts only jobs covered by unemployment insurance, so the self-employed aren't included. Jobs are counted where the workplace is, not where the worker lives.

Statewide: which sectors employ the most (2024, private)

Massachusetts private jobs by NAICS sector, 2024

Top private sectors in Massachusetts, 2024 (QCEW)

RankNAICS sectorAnnual average jobs
1Health Care and Social Assistance (62)648,228
2Professional, Scientific and Technical Services (54)371,502
3–5Retail Trade (44-45), Accommodation and Food Services (72), Manufacturing (31-33)each roughly 225,000–325,000
6Construction (23)170,524
7–10Administrative and Waste Services (56), Finance and Insurance (52), Educational Services (61), Wholesale Trade (42)each roughly 115,000–180,000

The chart shows all 19 sectors. Statewide there were about 3.18 million private jobs in 2025. Government adds about 450,000 more (federal, state and local), but QCEW doesn't break government jobs into the same private sectors.

Compared with the nation (location quotients, 2025):

  • Educational Services: 2.1× the national share of jobs.
  • Professional, Scientific and Technical Services: 1.42×.
  • Health care: 1.23×.

Private colleges and hospitals are counted in these private sectors.

By county: the largest private sector

Largest Private Sector by County, 2024

Map legend: each county is filled by its largest private sector in 2024:

  • Blue: Health Care and Social Assistance
  • Purple: Professional, Scientific and Technical Services
  • Orange: Accommodation and Food Services

Click a county to see the jobs in its top two sectors and the top sector's share. The text tags mark Middlesex (MID), Suffolk (SUF), Barnstable (BAR), Dukes (DUK) and Nantucket (NAN).

Largest and second-largest private sector by county, 2024 (QCEW)

CountyLargest sectorJobsSecond sectorJobs
Middlesex CountyProfessional, Scientific and Technical159,395Health Care and Social Assistance125,576
Suffolk CountyHealth Care and Social Assistance153,540Professional, Scientific and Technical99,564
Worcester CountyHealth Care and Social Assistance72,626Retail Trade37,057
Essex CountyHealth Care and Social Assistance64,038Manufacturing39,526
Norfolk CountyHealth Care and Social Assistance55,899Retail Trade38,603
Hampden CountyHealth Care and Social Assistance52,939Retail Trade19,022
Bristol CountyHealth Care and Social Assistance42,694Retail Trade31,467
Plymouth CountyHealth Care and Social Assistance33,292Retail Trade26,229
Barnstable CountyAccommodation and Food Services15,677Health Care and Social Assistance15,098
Berkshire CountyHealth Care and Social Assistance12,092Retail Trade7,212
Hampshire CountyHealth Care and Social Assistance10,341Retail Trade7,387
Franklin CountyHealth Care and Social Assistance4,112Manufacturing3,294
Nantucket CountyAccommodation and Food Services1,727Construction1,126
Dukes CountyAccommodation and Food Services1,390Retail Trade1,320

Things to note:

  • Close calls: In Barnstable and Dukes, the top two sectors are within about 600 and 70 jobs of each other.
  • Withheld figures: BLS withheld some sector figures to protect employers' confidentiality: six in Nantucket, two each in Barnstable, Dukes and Suffolk, and one in Bristol. The withheld sectors can add up to at most 617 jobs in Nantucket, 141 in Dukes and 394 in Barnstable, fewer than the leading sector has in each case. So no withheld sector could be the largest, and the ranking holds.
  • Jobs not placed in a county: About 94,000 private jobs couldn't be assigned to a county (area code 25999). They're in the statewide totals but not in any county's figures.

If you'd rather count all employers, I can add government jobs (for example, public schools and state hospitals) to the sector totals. I can also rank by location quotient to show what each county specializes in, rather than its largest sector.

Chart Queries
Massachusetts private jobs by NAICS sector, 2024
   SELECT n.title || ' (' || q.industry_code || ')' AS "Sector",
          q.annual_avg_employment AS "Annual average jobs"
     FROM ma_qcew_annual q
     JOIN us_naics_codes n ON n.code = q.industry_code
    WHERE q.area_fips = '25000'
      AND q.own_code = 5
      AND q.agglvl_code = 54
      AND q.year = 2024
      AND q.industry_code <> '99'
      AND NOT q.suppressed
 ORDER BY 2 DESC

charts/turn-1-ma-private-jobs-by-sector.csv

Picture: charts/turn-1-ma-private-jobs-by-sector.png

Exploratory Queries
Query 1 — Statewide private employment by NAICS sector, latest year.
   SELECT q.year,
          q.industry_code,
          n.title,
          q.annual_avg_employment,
          q.establishments,
          q.avg_annual_pay,
          q.suppressed,
          q.lq_employment
     FROM ma_qcew_annual q
LEFT JOIN us_naics_codes n ON n.code = q.industry_code
    WHERE q.area_fips = '25000'
      AND q.own_code = 5
      AND q.agglvl_code = 54
      AND q.year = (
             SELECT max(YEAR)
               FROM ma_qcew_annual
          )
 ORDER BY q.annual_avg_employment DESC NULLS LAST
yearindustry_codetitleannual_avg_employmentestablishmentsavg_annual_paysuppressedlq_employment
202562Health Care and Social Assistance6584417428675950false1.23
202554Professional, Scientific, and Technical Services35664743758192482false1.42
202544-45Retail Trade3221742173847720false0.9
202572Accommodation and Food Services2993061682636959false0.91
202531-33Manufacturing2266917218110734false0.77
202556Administrative and Support and Waste Management and Remediation Services1789041535171075false0.85
202552Finance and Insurance16697611997218440false1.13
202561Educational Services158730499486056false2.1
202581Other Services (except Public Administration)1179752420355350false1.08
202542Wholesale Trade11763213925134381false0.83
202555Management of Companies and Enterprises764431664171122false1.26
202571Arts, Entertainment, and Recreation66530422257314false1.07
202553Real Estate and Rental and Leasing481868343110704false0.86
202599NAICS 99 Unclassified292true
202521Mining, Quarrying, and Oil and Gas Extraction101true
202522Utilities527true
202523Construction22668true
202548-49Transportation and Warehousing4714true
202551Information10023true
202511Agriculture, Forestry, Fishing and Hunting1036true

data/turn-1-query-1.csv

Query 2 — Statewide totals for context: all ownerships and private.
   SELECT YEAR,
          own_code,
          industry_code,
          annual_avg_employment
     FROM ma_qcew_annual
    WHERE area_fips = '25000'
      AND industry_code = '10'
      AND YEAR = (
             SELECT max(YEAR)
               FROM ma_qcew_annual
          )
 ORDER BY own_code
yearown_codeindustry_codeannual_avg_employment
20250103634042
202511044690
2025210119020
2025310285866
20255103184467
2025810449576

data/turn-1-query-2.csv

Query 3 — Check whether the suppressed statewide sectors are published in 2024.
   SELECT q.year,
          q.industry_code,
          q.annual_avg_employment,
          q.suppressed
     FROM ma_qcew_annual q
    WHERE q.area_fips = '25000'
      AND q.own_code = 5
      AND q.agglvl_code = 54
      AND q.year IN (2023, 2024)
      AND q.industry_code IN ('23', '48-49', '51', '22', '11', '21', '62', '54')
 ORDER BY industry_code,
          YEAR
yearindustry_codeannual_avg_employmentsuppressed
20231112761false
20241112781false
202321905false
202421967false
20232212291false
20242212433false
202323172544false
202423170524false
202348-4994112false
202448-4995368false
20235195538false
20245192346false
202354375556false
202454371502false
202362636290false
202462648228false

data/turn-1-query-3.csv

Query 4 — Rank private sectors within each county for 2024, noting suppressed cells.
     WITH s AS (
             SELECT q.area_fips,
                    q.industry_code,
                    n.title,
                    q.annual_avg_employment emp,
                    q.suppressed AS supp,
                    row_number() OVER (
                    PARTITION BY q.area_fips
                     ORDER BY q.annual_avg_employment DESC NULLS LAST
                    ) rk
               FROM ma_qcew_annual q
          LEFT JOIN us_naics_codes n ON n.code = q.industry_code
              WHERE q.own_code = 5
                AND q.agglvl_code = 74
                AND q.year = 2024
          )
   SELECT s.area_fips,
          c.name,
          t.annual_avg_employment AS county_private,
          max(
          CASE
                    WHEN rk = 1 THEN title
          END
          ) top1,
          max(
          CASE
                    WHEN rk = 1 THEN emp
          END
          ) emp1,
          max(
          CASE
                    WHEN rk = 2 THEN title
          END
          ) top2,
          max(
          CASE
                    WHEN rk = 2 THEN emp
          END
          ) emp2,
          count(*) FILTER (
              WHERE supp
          ) n_supp,
          string_agg(
          CASE
                    WHEN supp THEN s.industry_code
          END,
          ','
          ) supp_codes
     FROM s
LEFT JOIN ma_census_counties c ON c.geoid = s.area_fips
LEFT JOIN ma_qcew_annual t ON t.area_fips = s.area_fips
      AND t.own_code = 5
      AND t.industry_code = '10'
      AND t.year = 2024
 GROUP BY s.area_fips,
          c.name,
          t.annual_avg_employment
 ORDER BY s.area_fips
area_fipsnamecounty_privatetop1emp1top2emp2n_suppsupp_codes
25001Barnstable County81648Accommodation and Food Services15677Health Care and Social Assistance15098211,21
25003Berkshire County50068Health Care and Social Assistance12092Retail Trade72120
25005Bristol County198190Health Care and Social Assistance42694Retail Trade31467199
25007Dukes County7574Accommodation and Food Services1390Retail Trade1320242,22
25009Essex County282057Health Care and Social Assistance64038Manufacturing395260
25011Franklin County20257Health Care and Social Assistance4112Manufacturing32940
25013Hampden County169461Health Care and Social Assistance52939Retail Trade190220
25015Hampshire County48467Health Care and Social Assistance10341Retail Trade73870
25017Middlesex County834053Professional, Scientific, and Technical Services159395Health Care and Social Assistance1255760
25019Nantucket County7675Accommodation and Food Services1727Construction1126654,11,22,31-33,42,55
25021Norfolk County310196Health Care and Social Assistance55899Retail Trade386030
25023Plymouth County164717Health Care and Social Assistance33292Retail Trade262290
25025Suffolk County633657Health Care and Social Assistance153540Professional, Scientific, and Technical Services99564221,11
25027Worcester County296765Health Care and Social Assistance72626Retail Trade370570
2599993840Finance and Insurance15228Administrative and Support and Waste Management and Remediation Services10768655,54,21,22,31-33,42

data/turn-1-query-4.csv

Query 5 — Bound suppressed sectors in Nantucket, Dukes and Barnstable by residual jobs.
   SELECT q.area_fips,
          t.annual_avg_employment - sum(q.annual_avg_employment) AS residual_in_suppressed
     FROM ma_qcew_annual q
     JOIN ma_qcew_annual t ON t.area_fips = q.area_fips
      AND t.own_code = 5
      AND t.industry_code = '10'
      AND t.year = 2024
    WHERE q.own_code = 5
      AND q.agglvl_code = 74
      AND q.year = 2024
      AND q.area_fips IN ('25019', '25007', '25001')
 GROUP BY q.area_fips,
          t.annual_avg_employment
area_fipsresidual_in_suppressed
25001394
25007141
25019617

data/turn-1-query-5.csv

Map Layer Queries
Largest private sector (QCEW 2024) — colored by "Largest sector": Health Care and Social Assistance (62) (#2b8cbe), Professional, Scientific, and Technical Services (54) (#8856a7), Accommodation and Food Services (72) (#f28e2b)
     WITH s AS (
             SELECT q.area_fips,
                    q.industry_code,
                    n.title,
                    q.annual_avg_employment emp,
                    row_number() OVER (
                    PARTITION BY q.area_fips
                     ORDER BY q.annual_avg_employment DESC NULLS LAST
                    ) rk
               FROM ma_qcew_annual q
               JOIN us_naics_codes n ON n.code = q.industry_code
              WHERE q.own_code = 5
                AND q.agglvl_code = 74
                AND q.year = 2024
          ),
          t AS (
             SELECT area_fips,
                    annual_avg_employment tot
               FROM ma_qcew_annual
              WHERE own_code = 5
                AND industry_code = '10'
                AND YEAR = 2024
          )
   SELECT c.geom,
          c.name AS "County",
          a.title AS "Largest sector",
          a.emp AS "Jobs in largest sector",
          round(100.0 * a.emp / t.tot, 1) AS "Share of county private jobs(%)",
          b.title AS "Second sector",
          b.emp AS "Jobs in second sector",
          t.tot AS "County private jobs"
     FROM ma_census_counties c
     JOIN s a ON a.area_fips = c.geoid
      AND a.rk = 1
     JOIN s b ON b.area_fips = c.geoid
      AND b.rk = 2
     JOIN t ON t.area_fips = c.geoid

Picture: maps/turn-1-largest-sector-by-county.png

Used Data Sets

data/turn-1-query-1.csv

↑ Contents
yearindustry_codetitleannual_avg_employmentestablishmentsavg_annual_paysuppressedlq_employment
202562Health Care and Social Assistance6584417428675950false1.23
202554Professional, Scientific, and Technical Services35664743758192482false1.42
202544-45Retail Trade3221742173847720false0.9
202572Accommodation and Food Services2993061682636959false0.91
202531-33Manufacturing2266917218110734false0.77
202556Administrative and Support and Waste Management and Remediation Services1789041535171075false0.85
202552Finance and Insurance16697611997218440false1.13
202561Educational Services158730499486056false2.1
202581Other Services (except Public Administration)1179752420355350false1.08
202542Wholesale Trade11763213925134381false0.83
202555Management of Companies and Enterprises764431664171122false1.26
202571Arts, Entertainment, and Recreation66530422257314false1.07
202553Real Estate and Rental and Leasing481868343110704false0.86
202599NAICS 99 Unclassified292true
202521Mining, Quarrying, and Oil and Gas Extraction101true
202522Utilities527true
202523Construction22668true
202548-49Transportation and Warehousing4714true
202551Information10023true
202511Agriculture, Forestry, Fishing and Hunting1036true

20 rows.

data/turn-1-query-2.csv

↑ Contents
yearown_codeindustry_codeannual_avg_employment
20250103634042
202511044690
2025210119020
2025310285866
20255103184467
2025810449576

6 rows.

data/turn-1-query-3.csv

↑ Contents
yearindustry_codeannual_avg_employmentsuppressed
20231112761false
20241112781false
202321905false
202421967false
20232212291false
20242212433false
202323172544false
202423170524false
202348-4994112false
202448-4995368false
20235195538false
20245192346false
202354375556false
202454371502false
202362636290false
202462648228false

16 rows.

data/turn-1-query-4.csv

↑ Contents
area_fipsnamecounty_privatetop1emp1top2emp2n_suppsupp_codes
25001Barnstable County81648Accommodation and Food Services15677Health Care and Social Assistance15098211,21
25003Berkshire County50068Health Care and Social Assistance12092Retail Trade72120
25005Bristol County198190Health Care and Social Assistance42694Retail Trade31467199
25007Dukes County7574Accommodation and Food Services1390Retail Trade1320242,22
25009Essex County282057Health Care and Social Assistance64038Manufacturing395260
25011Franklin County20257Health Care and Social Assistance4112Manufacturing32940
25013Hampden County169461Health Care and Social Assistance52939Retail Trade190220
25015Hampshire County48467Health Care and Social Assistance10341Retail Trade73870
25017Middlesex County834053Professional, Scientific, and Technical Services159395Health Care and Social Assistance1255760
25019Nantucket County7675Accommodation and Food Services1727Construction1126654,11,22,31-33,42,55
25021Norfolk County310196Health Care and Social Assistance55899Retail Trade386030
25023Plymouth County164717Health Care and Social Assistance33292Retail Trade262290
25025Suffolk County633657Health Care and Social Assistance153540Professional, Scientific, and Technical Services99564221,11
25027Worcester County296765Health Care and Social Assistance72626Retail Trade370570
2599993840Finance and Insurance15228Administrative and Support and Waste Management and Remediation Services10768655,54,21,22,31-33,42

15 rows.

data/turn-1-query-5.csv

↑ Contents
area_fipsresidual_in_suppressed
25001394
25007141
25019617

3 rows.

charts/turn-1-ma-private-jobs-by-sector.csv

↑ Contents
SectorAnnual average jobs
Health Care and Social Assistance (62)648228
Professional, Scientific, and Technical Services (54)371502
Retail Trade (44-45)327260
Accommodation and Food Services (72)299905
Manufacturing (31-33)231186
Administrative and Support and Waste Management and Remediation Services (56)182284
Construction (23)170524
Finance and Insurance (52)168270
Educational Services (61)159215
Wholesale Trade (42)120788
Other Services (except Public Administration) (81)117109
Transportation and Warehousing (48-49)95368
Information (51)92346
Management of Companies and Enterprises (55)74874
Arts, Entertainment, and Recreation (71)65082
Real Estate and Rental and Leasing (53)48467
Agriculture, Forestry, Fishing and Hunting (11)12781
Utilities (22)12433
Mining, Quarrying, and Oil and Gas Extraction (21)967

19 rows.

provenance/ma_census_counties.md

↑ Contents

Provenance: ma_census_counties

This file describes how the rows in PostgreSQL table ma_census_counties were obtained from an external source: where they were fetched and how fields were renamed and typed. Field meanings are in the mapping table below.

Identity
Pipeline

Two Census Bureau sources, joined on the county's 5-digit FIPS code:

  • Boundaries: TIGERweb tigerWMS_Current layer 82 ("Counties"), where=STATE='25', GeoJSON, outSR=4326, keyset-paged on GEOID.
  • CFS areas: sheet CFSAreas of the 2022 Commodity Flow Survey county list, the Massachusetts rows (ST = 25). Only the 2022 columns are kept.

The two must name the same counties, or the sync fails. FAF's ma_faf_county_xwalk is built from this table: each county's cfs_geoid is the CFS22_ID of one FAF6 zone.

Field → column mapping
Source fieldColumnTypeDescription
TIGER GEOIDgeoidvarchar(5)state + county FIPS
TIGER GEOID, last 3county_fipsvarchar(3)county FIPS
TIGER NAMEnamevarchar(60)e.g. Middlesex County
CFS CFS22_AREAcfs_areavarchar(5)CSA/MSA code, or 99999
CFS CFS22_TYPEcfs_area_typevarchar(1)C, M or R
CFS CFS22_NAME, whitespace collapsedcfs_area_namevarchar(120)the workbook pads some names with doubled and trailing spaces
CFS CFS22_GEOIDcfs_geoidvarchar(19)e.g. E330000US2514800000
TIGER AREALANDaland_m2bigintsquare meters
TIGER AREAWATERawater_m2bigintsquare meters
TIGER INTPTLATintptlatdouble precisioninternal point
TIGER INTPTLONintptlondouble precisioninternal point
geometrygeomgeometry(MultiPolygon, 4326)ST_Multi(ST_GeomFromGeoJSON)
Geometry
  • SRID 4326 (WGS84). GIST index on geom.
Change detection

The Census sync's check compares the layer's vintage ("January 1, 2026 vintage") and Massachusetts's row count, and the county list's Last-Modified and length. A change to either marks Census stale, and the next Census sync rebuilds this table, then FAF's crosswalk.

Attribution

US Census Bureau. TIGER products are free to use with acknowledgement of the U.S. Census Bureau as the source; the CFS county list states no terms.

provenance/ma_qcew_annual.md

↑ Contents

Provenance: ma_qcew_annual

This file describes how the rows in PostgreSQL table ma_qcew_annual were obtained from an external source: where they were fetched and how fields were renamed and typed. Field meanings are in the mapping table below.

Identity
  • Table: ma_qcew_annual
  • Family: QCEW
  • Display name: QCEW Annual Employment and Wages
  • Source URL: https://data.bls.gov/cew/data/files/ (<year>/csv/<year>_annual_singlefile.zip, 1990 on)
  • Geometry (source / stored): none / none
  • Update cycle: Yearly
Pipeline

BLS publishes one national annual file per year, a zip holding one CSV of every area, ownership and industry, late in the summer after the year ends. Every year from 1990 is loaded. The files are downloaded once into the sync's input store in two inputs, the years before BLS's newest annual file and that file; each state the QCEW sync is switched on for is cut from the same stored files.

Each file is inflated as a stream and only its lines whose area_fips starts with Massachusetts's FIPS code (25) are read: the statewide row (25000), the counties and the unknown county (25999). The metropolitan and national rows are not loaded. The stage counts Massachusetts's lines in every file and checks that the table holds that many rows, and that each file's year is the year it names.

A row BLS withheld (disclosure code N) keeps its establishment count and has every other figure null, where the file writes zeros; a row with the undocumented code - (every figure zero, establishments too) is stored the same way with no establishment count. The location quotient is null where its own disclosure code is N.

Changed from the source: cut to Massachusetts; suppressed zeros stored as nulls; the size code (always 0 in these files), taxable wages, contributions, the other location quotients and every over-the-year change column dropped.

Public domain, citation requested: "the Bureau of Labor Statistics as the source".

Field → column mapping
Source fieldColumnTypeDescription
area_fipsarea_fipstextAs published
own_codeown_codetext → smallint
industry_codeindustry_codetextAs published
agglvl_codeagglvl_codetext → smallint
yearyeartext → smallintChecked against the file's year
qtr(dropped)Always A
disclosure_codesuppressedtext → booleanN or -
annual_avg_estabsestablishmentsintegerNull on a - row
annual_avg_emplvlannual_avg_employmentintegerNull when suppressed
total_annual_wagestotal_wagesbigintNull when suppressed
annual_avg_wkly_wageavg_weekly_wageintegerNull when suppressed
avg_annual_payavg_annual_payintegerNull when suppressed
lq_annual_avg_emplvllq_employmentrealNull when lq_disclosure_code is N
size_code, taxable_annual_wages, annual_contributions, lq_* (others), oty_*(dropped)

provenance/us_naics_codes.md

↑ Contents

Provenance: us_naics_codes

This file describes how the rows in PostgreSQL table us_naics_codes were obtained from an external source: where they were fetched and how fields were renamed and typed. Field meanings are in the mapping table below.

Identity
Pipeline

Built by the QCEW sync's national target from BLS's industry titles file, the codes and titles QCEW reports by, which the check HEADs with every QCEW check. Every code in the file is loaded, 10 (all industries) included. The 27 LODES sector rows are written first, with plain sector titles: the 20 sectors, the three range codes (31-33, 44-45, 48-49) and their seven split 2-digit codes, which the BLS file does not list. A code the file and the LODES list both give keeps the LODES row.

level, digits and parent_code are derived from the code's shape: 10, the 3-digit codes starting 10 (domains) and the 4-digit codes starting 10 (supersectors) are BLS groupings; every other code is NAICS, its depth its length (2 for a range). lodes_cns is the LODES sector of the code's first two digits.

It replaced LEHD's oh_naics_codes, with the same rows, 10 added, level added, and null digits on the domains and supersectors.

Changed from the source: the LODES split sectors added; the derived columns added. Public domain, citation requested.

Field → column mapping
Source fieldColumnTypeDescription
industry_codecodevarchar(6)As published
industry_titletitletextAs published; the plain LODES title on the sectors
(derived)leveltextFrom the code's shape
(derived)digitssmallintCode length, 2 for a range; null above the sectors
(derived)parent_codevarchar(6)Next broader code
(derived)lodes_cnsvarchar(5)LODES sector of the first two digits

© 2026 State Planner