Main Account Code
Code for the Treasury main account tied to the award's reported Treasury account. It is a coded identifier, not a narrative description, and is used to classify the account within Treasury reporting structures.
FPDS Compare
Use Cases
- Dictionary lookup and field explanation
- SQL filtering and grouping
- Analytical reporting and reusable query building
Common Usage
- Linking awards to Treasury account structures
- Grouping obligations by funding account
- Filtering awards by specific account codes
Common Mistakes
- Reading the code as a descriptive label instead of an identifier
- Joining on this field without accounting for paired Treasury account elements or formatting differences
Query Guidance
Use this field as a join key or filter criterion only when matching to a Treasury account reference table or another dataset with the same code standard. In SQL, compare values as strings when possible to preserve leading zeros, and combine it with related account fields for reliable aggregation or validation.
SQL Examples
Preview values
SELECT
content__award__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode AS main_account_code
FROM fpds.data
WHERE content__award__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode IS NOT NULL
LIMIT 25
Top values
SELECT
content__award__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode AS value,
count() AS record_count
FROM fpds.data
WHERE content__award__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode 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.