Principal NAICS Code
Coded field that records the principal North American Industry Classification System (NAICS) code associated with the award. It represents the primary industry category for the contracted work, not a free-text description.
FPDS Compare
Paired Field
Use Cases
- Dictionary lookup and field explanation
- SQL filtering and grouping
- Analytical reporting and reusable query building
- Market segmentation by industry or PSC
Common Usage
- Industry-level spend and obligation reporting
- Vendor or award segmentation by sector
- Market research and NAICS-based trend analysis
Common Mistakes
- Assuming the code is a description instead of a classification key
- Grouping without normalizing code format or checking for null/invalid values
Query Guidance
Select and group by this field directly for NAICS-based analysis, and join to a lookup table when a descriptive industry label is needed. In SQL, standardize the datatype as text if necessary to avoid losing leading zeros, and filter for non-null values before aggregating.
SQL Examples
Preview values
SELECT
content__award__productOrServiceInformation__principalNAICSCode AS principal_n_a_i_c_s_code
FROM fpds.data
WHERE content__award__productOrServiceInformation__principalNAICSCode IS NOT NULL
LIMIT 25
Top values
SELECT
content__award__productOrServiceInformation__principalNAICSCode AS value,
count() AS record_count
FROM fpds.data
WHERE content__award__productOrServiceInformation__principalNAICSCode IS NOT NULL
GROUP BY value
ORDER BY record_count DESC
LIMIT 25
Each dictionary item includes SQL-ready examples generated alongside the variable metadata, allowing immediate use in FPDS Query for filtering, aggregation, and analysis.