Results for “school_dst_code”

2 results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

The HR_S_US_CITY_SCHOOL_DSTS table is a Human Resources (PER) reference table within the Oracle E-Business Suite 12.1.1 and 12.2.2 database schema. It stores United States city-level school district assignments, providing the geographic mapping that links a specific city, county, and state combination to an associated school district code and name. This table forms part of the broader U.S. geographical and legislative hierarchy used by Oracle HRMS for localization, statutory reporting, and tax-related processing.

From a data modeling perspective, the metadata classifies this object heuristically as a standalone structure. Because it carries no foreign key dependencies to parent tables in the mined relationship data, it functions as a self-contained reference (code/description) table rather than a dependent or transaction-bearing entity. It is a configuration-level object that supports lookup and validation against school district values keyed by geography.

Key Information Stored

The table contains five documented columns. The composite primary key, enforced by the unique index HR_S_US_CITY_SCHOOL_DSTS_PK, is a business-key candidate composed of four columns that together constitute the natural identifier of each row:

  • SCHOOL_DST_CODE — The school district code; identifies the specific school district record and is the first component of the composite primary key.
  • STATE_CODE — The U.S. state code; the second component of the primary key and a geographic qualifier.
  • COUNTY_CODE — The county code; the third component of the primary key, narrowing the geography to a county within the state.
  • CITY_CODE — The city code; the fourth component of the primary key, completing the geographic chain from state to county to city.
  • SCHOOL_DST_NAME — The descriptive name of the school district, providing the human-readable label corresponding to SCHOOL_DST_CODE.

The composite key (SCHOOL_DST_CODE, STATE_CODE, COUNTY_CODE, CITY_CODE) is unusual because it is entirely composed of source system codes rather than a generated surrogate. This means joins to this table must supply all four key columns to retrieve the district name. The unique index confirms that no two rows may share the same code combination, making the four-column set the effective business key.

Common Use Cases and Queries

Primary use cases include resolving a school district name from a city/county/state address combination, validating school district codes for employee or dependent records, and generating geographic reference extracts for reporting, tax filing, or compliance scenarios. Typical query patterns resolve the name from a full key:

  • Lookup by geography: SELECT SCHOOL_DST_NAME FROM HR.HR_S_US_CITY_SCHOOL_DSTS WHERE STATE_CODE = :state AND COUNTY_CODE = :county AND CITY_CODE = :city AND SCHOOL_DST_CODE = :district;
  • List all districts in a city: SELECT SCHOOL_DST_CODE, SCHOOL_DST_NAME FROM HR.HR_S_US_CITY_SCHOOL_DSTS WHERE STATE_CODE = :state AND COUNTY_CODE = :county AND CITY_CODE = :city;
  • Reference validation: join this table to address or location data to confirm that a district code is valid for the given city, county, and state before persisting it.

Reporting scenarios benefit from joining the four key columns to corresponding address or location tables so that geographic context and district names are presented together.

Related Objects

The documented metadata does not enumerate foreign key relationships to specific child or parent objects, and the table is classified as standalone with no inbound or outbound FK dependencies mined. Consequently, related objects are inferred from the business domain rather than documented FK structure. Likely associated reference and transactional tables include:

  • HR_ALL_ORGANIZATION_UNITS — organization and location context that may reference geography and school district information.
  • HR_LOCATIONS / HR_LOCATIONS_ALL — address and location records whose state, county, and city values correspond to the keys in this table.
  • PER_ADDRESSES — person address data that shares state, county, and city geographic components.
  • PAY_US_STATE_RULES and other U.S. payroll/statutory reference tables that depend on state and county code chains.
  • HR_S_US_* sibling U.S. localization reference tables (for example city, county, and state hierarchies) that share the same geographic key conventions.

Because no explicit FK metadata is provided, joins should always be constructed on the composite key columns (STATE_CODE, COUNTY_CODE, CITY_CODE, and where applicable SCHOOL_DST_CODE) to maintain referential integrity.