Results for “city_code”
50+ results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
The HR.PAY_US_CITY_GEOCODES table is a reference data object within the Oracle E-Business Suite Payroll (PAY) module. It holds all distinct combinations of state code, county code and city code that are used by U.S. payroll and tax processing functionality. In EBS 12.1.1 and 12.2.2, this table acts as the geographic validation anchor that ties city-level tax jurisdictions and school district assignments to a single canonical city key. Downstream city-level objects — city names, city school districts, employee city tax rules and ZIP codes — resolve their geographic context through this table.
From a Data Vault modeling perspective, the heuristic classification of this object is hub-leaning. The composite business key (STATE_CODE, COUNTY_CODE, CITY_CODE) plus the ZD_EDITION_NAME column define the natural identity of a city geocode. The absence of descriptive, change-tracked attributes beyond these keys supports treating the object as a hub rather than a satellite; change history, where required, would typically be captured in adjacent satellites.
Key Information Stored
The documented physical schema contains four columns, with the ZD_EDITION_NAME attribute introduced for edition-based / data-loss-prevention versioning:
- STATE_CODE — Two-character U.S. state code portion of the composite business key.
- COUNTY_CODE — County identifier within the state; together with STATE_CODE and CITY_CODE forms the natural city geocode.
- CITY_CODE — City identifier within the state/county combination.
- ZD_EDITION_NAME — Edition identifier that extends the unique index, allowing multiple edition versions to coexist.
The unique indexes (business-key candidates) are PAY_US_CITY_GEOCODES_PK, defined over (STATE_CODE, COUNTY_CODE, CITY_CODE, ZD_EDITION_NAME). The surrogate primary key PAY_US_CITY_GEOCODES_PK is the same constraint used as the business-key candidate, i.e. EBS does not carry a separate numeric surrogate column in the documented metadata. Any joins must therefore use the full four-column key family.
Common Use Cases and Queries
The table is primarily queried as a lookup/validation source when payroll calculations need to resolve a city to a valid combination, and when upstream reference data (counties, ZIP codes) must be reconciled. Typical patterns include:
- Validating a de-normalized inbound file of state/county/city combinations before loading PAY_US_CITY_NAMES or PAY_US_EMP_CITY_TAX_RULES_F.
- Reporting the number of active city geocodes by state, to support U.S. payroll jurisdiction coverage analysis.
- Finding orphan ZIP codes — ZIP records whose (STATE_CODE, COUNTY_CODE, CITY_CODE) triple is absent from the city geocode registry.
Representative SQL:
SELECT state_code, COUNT(*) city_cnt
FROM hr.pay_us_city_geocodes
GROUP BY state_code
ORDER BY state_code;
SELECT z.state_code, z.zip_code
FROM hr.pay_us_zip_codes z
LEFT JOIN hr.pay_us_city_geocodes g
ON g.state_code = z.state_code
AND g.county_code = z.county_code
AND g.city_code = z.city_code
WHERE g.state_code IS NULL;
Related Objects
Relationship data from the ETRM shows the following dependencies. This table references PAY_US_COUNTIES via (STATE_CODE, COUNTY_CODE), and is referenced by several downstream city-level objects:
- PAY_US_COUNTIES — Parent county registry (this table’s only outbound FK).
- PAY_US_CITY_NAMES — Reverses the FK; supplies localized city names keyed by STATE_CODE, COUNTY_CODE, CITY_CODE.
- PAY_US_CITY_SCHOOL_DSTS — School district assignments for the same city key.
- PAY_US_EMP_CITY_TAX_RULES_F — Effective-dated employee city tax rules that require a valid city geocode.
- PAY_US_ZIP_CODES — ZIP code registry anchored to the same state/county/city triple.
Because every dependent object uses the same four-column key, the primary operational risk is key drift: if a state/county/city combination is retired or re-keyed, all four dependent tables must be reconciled in the same data-maintenance window.
-
Holds all distinct combinations of state code, county code and city code.
-
View: PAY_CA_CITIES_V 12.1.1
APPS.PAY_CA_CITIES_V·↳ PAY_US_CITY_NAMES·Explore PAY module →
-
APPS.PAYBV_US_CITY_GEOCODES_V·↳ PAY_US_CITY_GEOCODES·Explore PAY module →
-
Canadian cities and their geocodes, used to update city names with their correct Canadian French spellings
-
View: PAYBV_US_ZIP_CODES_V 12.2.2
APPS.PAYBV_US_ZIP_CODES_V·↳ PAY_US_ZIP_CODES·Explore PAY module →
-
VERTEX geocodes for school districts within a city.
-
APPS.PAYBV_US_CITY_SCHOOL_DSTS_V·↳ PAY_US_CITY_SCHOOL_DSTS·Explore PAY module →
-
View: PAYBV_US_ZIP_CODES_V 12.1.1
APPS.PAYBV_US_ZIP_CODES_V·↳ PAY_US_ZIP_CODES·Explore PAY module →
-
VERTEX geocodes for school districts within a city.
-
View: PAYBV_US_CITY_NAMES_V 12.2.2
APPS.PAYBV_US_CITY_NAMES_V·↳ PAY_US_CITY_NAMES·Explore PAY module →
-
Valid zip code ranges for VERTEX cities, used to validate US addresses.
-
Valid zip code ranges for VERTEX cities, used to validate US addresses.
-
APPS.PAYBV_US_CITY_SCHOOL_DSTS_V·↳ PAY_US_CITY_SCHOOL_DSTS·Explore PAY module →
-
Contains data related to Oracle HR to Oracle Payroll Interface (H2PI) for US city names
APPS.HR_H2PI_US_CITY_NAMES_V·↳ PAY_US_CITY_NAMES·Explore PER module →
-
US cities and their VERTEX geocodes, used to validate US addresses.
-
APPS.PAY_CA_CITY_INFORMATION_V·↳ PAY_US_CITY_NAMES·↳ PAY_US_COUNTIES·↳ PAY_US_STATES·Explore PAY module →
-
Used to support user interface
APPS.PAY_US_EMP_TIME_IN_CITY_V·↳ FND_NUMBER·↳ FND_SESSIONS·↳ PAY_ELEMENT_ENTRIES_F·Explore PAY module →
-
US cities and their VERTEX geocodes, used to validate US addresses.
-
US cities and their VERTEX geocodes, used to validate US addresses.
-
This table stores source geography data
-
Table: MSC_PHUB_SUPPLIERS_MV 12.2.2
-
View: PAY_CA_POSTAL_CODES_V 12.1.1
APPS.PAY_CA_POSTAL_CODES_V·↳ PAY_US_ZIP_CODES·Explore PAY module →
-
View: PAY_CA_CITIES_V 12.2.2
APPS.PAY_CA_CITIES_V·↳ PAY_US_CITY_NAMES·Explore PAY module →
-
Table: MSC_PHUB_CUSTOMERS_MV 12.2.2
-
Valid zip code ranges for VERTEX cities, used to validate US addresses.
-
Contains data related to Oracle HR to Oracle Payroll Interface (H2PI) for US city names
APPS.HR_H2PI_US_CITY_NAMES_V·↳ PAY_US_CITY_NAMES·Explore PER module →
-
This table stores source geography data
-
APPS.PAYBV_US_CITY_GEOCODES_V·↳ PAY_US_CITY_GEOCODES·Explore PAY module →
-
APPS.PAY_CA_CITY_INFORMATION_V·↳ PAY_US_CITY_NAMES·↳ PAY_US_COUNTIES·↳ PAY_US_STATES·Explore PAY module →
-
Holds all distinct combinations of state code, county code and city code.
-
View: PAY_CA_POSTAL_CODES_V 12.2.2
APPS.PAY_CA_POSTAL_CODES_V·↳ PAY_US_ZIP_CODES·Explore PAY module →
-
Regions interface table - used to store region data before upload into regular region tables
-
View: HR_US_CITIES_LOV_V 12.1.1
View to retrieve data for web LOV for US Cities.
APPS.HR_US_CITIES_LOV_V·↳ PAY_US_CITY_NAMES·↳ PAY_US_COUNTIES·↳ PAY_US_STATES·Explore PER module →
-
View: HR_US_CITIES_LOV_V 12.2.2
View to retrieve data for web LOV for US Cities.
APPS.HR_US_CITIES_LOV_V·↳ PAY_US_CITY_NAMES·↳ PAY_US_COUNTIES·↳ PAY_US_STATES·Explore PER module →
-
View: PAY_US_SCHOOL_DSTS 12.1.1
- Retrofitted
APPS.PAY_US_SCHOOL_DSTS·↳ PAY_US_CITY_SCHOOL_DSTS·↳ PAY_US_COUNTY_SCHOOL_DSTS·Explore PAY module →
-
View: PAY_US_SCHOOL_DSTS 12.2.2
- Retrofitted
APPS.PAY_US_SCHOOL_DSTS·↳ PAY_US_CITY_SCHOOL_DSTS·↳ PAY_US_COUNTY_SCHOOL_DSTS·Explore PAY module →
-
Used to support user interface
APPS.PAY_US_EMP_TIME_IN_CITY_V·↳ FND_NUMBER·↳ FND_SESSIONS·↳ PAY_ELEMENT_ENTRIES_F·Explore PAY module →
-
APPS.PAYBV_US_EMP_CT_TAX_RULES_F_V·↳ HR_BIS·↳ PAY_US_EMP_CITY_TAX_RULES_F·Explore PAY module →
-
Valid zip code ranges for VERTEX cities, used to validate US addresses.
-
Canadian cities and their geocodes, used to update city names with their correct Canadian French spellings
-
View: PAYBV_US_CITY_NAMES_V 12.1.1
APPS.PAYBV_US_CITY_NAMES_V·↳ PAY_US_CITY_NAMES·Explore PAY module →
-
APPS.WSH_REGIONS_INTERFACE_V·↳ WSH_REGIONS_INTERFACE·↳ WSH_REGIONS_TL_INTERFACE·Explore WSH module →
-
Contains data related to Oracle HR to Oracle Payroll Interface (H2PI) for US City Tax Rules
APPS.HR_H2PI_CITY_TAX_RULES_V·↳ HR_H2PI_ASSIGNMENTS_V·↳ PAY_US_EMP_CITY_TAX_RULES_F·Explore PER module →