Agency Id
Numeric identifier for the awarding agency associated with the other transaction award contract ID. It identifies the federal agency responsible for the award record rather than describing the award itself.
FPDS Compare
Use Cases
- Dictionary lookup and field explanation
- SQL filtering and grouping
- Analytical reporting and reusable query building
Common Usage
- Agency-level award rollups
- Filtering awards by issuing agency
- Joining to agency lookup/reference tables
Common Mistakes
- Interpreting the numeric code as a count or dollar amount
- Using the field without validating the agency code against a reference list
Query Guidance
Use this field in WHERE clauses to restrict results to specific agencies and in GROUP BY clauses to summarize activity by agency. When joining, match it to the corresponding agency code key in your reference data and preserve the raw numeric value for reproducibility.
SQL Examples
Preview values
SELECT
content__OtherTransactionAward__OtherTransactionAwardID__OtherTransactionAwardContractID__agencyID AS agency_id
FROM fpds.data
WHERE content__OtherTransactionAward__OtherTransactionAwardID__OtherTransactionAwardContractID__agencyID IS NOT NULL
LIMIT 25
Aggregate total
SELECT
sum(content__OtherTransactionAward__OtherTransactionAwardID__OtherTransactionAwardContractID__agencyID) AS total_value
FROM fpds.data
WHERE content__OtherTransactionAward__OtherTransactionAwardID__OtherTransactionAwardContractID__agencyID IS NOT NULL
Distribution overview
SELECT
min(content__OtherTransactionAward__OtherTransactionAwardID__OtherTransactionAwardContractID__agencyID) AS min_value,
avg(content__OtherTransactionAward__OtherTransactionAwardID__OtherTransactionAwardContractID__agencyID) AS avg_value,
max(content__OtherTransactionAward__OtherTransactionAwardID__OtherTransactionAwardContractID__agencyID) AS max_value,
count() AS record_count
FROM fpds.data
WHERE content__OtherTransactionAward__OtherTransactionAwardID__OtherTransactionAwardContractID__agencyID IS NOT NULL
Each dictionary item includes SQL-ready examples generated alongside the variable metadata, allowing immediate use in FPDS Query for filtering, aggregation, and analysis.