Department Id
Code identifying the department of the agency that requested or funded the IDV action. It is a coded reference value, not a narrative name, and typically represents the parent department within the federal reporting hierarchy.
FPDS Compare
Use Cases
- Dictionary lookup and field explanation
- SQL filtering and grouping
- Analytical reporting and reusable query building
Common Usage
- Group IDVs by requesting department
- Filter records for a specific department code
- Join to agency or department lookup tables
Common Mistakes
- Assuming the code is the human-readable department name
- Using the field as a numeric measure rather than an identifier
Query Guidance
Use equality filters for department-specific analysis and JOIN to a reference table for labels. Example: WHERE departmentID = '6900' or GROUP BY departmentID; if the field is stored as text, preserve leading zeros and compare as a string.
SQL Examples
Preview values
SELECT
content__IDV__purchaserInformation__fundingRequestingAgencyID__departmentID AS department_id
FROM fpds.data
WHERE content__IDV__purchaserInformation__fundingRequestingAgencyID__departmentID IS NOT NULL
LIMIT 25
Top values
SELECT
content__IDV__purchaserInformation__fundingRequestingAgencyID__departmentID AS value,
count() AS record_count
FROM fpds.data
WHERE content__IDV__purchaserInformation__fundingRequestingAgencyID__departmentID 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.