Sub Account Code
A coded sub-account identifier nested under the Treasury Account symbol. It specifies the lower-level account subdivision used to track a particular funding purpose or appropriation detail within the broader Treasury Account structure.
FPDS Compare
Use Cases
- Dictionary lookup and field explanation
- SQL filtering and grouping
- Analytical reporting and reusable query building
Common Usage
- Filtering contract actions by specific Treasury sub-account
- Grouping obligations by funding source at a finer level than Treasury Account
- Reconciling FPDS records to budget or accounting data
Common Mistakes
- Assuming the code is self-describing without a lookup table
- Aggregating across sub-account codes without also considering the parent Treasury Account
Query Guidance
Use this field as a coded grouping or filter column, typically in combination with the parent Treasury Account symbol and related account identifiers. In SQL, compare exact code values, preserve leading zeros, and avoid numeric casting because codes such as '002' are identifiers rather than numbers.
SQL Examples
Preview values
SELECT
content__award__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__subAccountCode AS sub_account_code
FROM fpds.data
WHERE content__award__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__subAccountCode IS NOT NULL
LIMIT 25
Top values
SELECT
content__award__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__subAccountCode AS value,
count() AS record_count
FROM fpds.data
WHERE content__award__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__subAccountCode 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.