Main Account Code
Code for the Treasury main account associated with the funding source for the award. It identifies the primary Treasury Account Symbol component used to record the appropriation or fund account behind the transaction.
FPDS Compare
Use Cases
- Dictionary lookup and field explanation
- SQL filtering and grouping
- Analytical reporting and reusable query building
Common Usage
- Group obligations by Treasury funding account
- Reconcile procurement awards to appropriations or fund lines
- Filter awards by specific main account code
Common Mistakes
- Interpreting the code as a narrative description instead of an identifier
- Using the field without checking for multiple Treasury accounts per award
Query Guidance
Use equality filters or GROUP BY on the code value when analyzing funding sources. When joining to reference tables, match on the code and, if available, pair it with the account description or full Treasury Account Symbol to avoid ambiguous results.
SQL Examples
Preview values
SELECT
content__OtherTransactionIDV__contractDetail__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode AS main_account_code
FROM fpds.data
WHERE content__OtherTransactionIDV__contractDetail__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode IS NOT NULL
LIMIT 25
Flag distribution
SELECT
content__OtherTransactionIDV__contractDetail__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode AS flag_value,
count() AS record_count
FROM fpds.data
WHERE content__OtherTransactionIDV__contractDetail__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode IS NOT NULL
GROUP BY flag_value
ORDER BY record_count DESC
Each dictionary item includes SQL-ready examples generated alongside the variable metadata, allowing immediate use in FPDS Query for filtering, aggregation, and analysis.