Search Results okc_cover_times_pk




Overview

The OKC_COVER_TIMES table is a core data structure within the Oracle E-Business Suite Contracts Core (OKC) module, specifically for releases 12.1.1 and 12.2.2. It functions as a junction or association table, establishing a many-to-many relationship between contract rules and time values. Its primary role is to link a specific rule (RUL_ID) to one or more time value components (TVE_ID), thereby defining the temporal scope or coverage for which a particular contractual rule is applicable. This association is fundamental for modeling complex contract terms that are governed by specific time periods, durations, or schedules within the system.

Key Information Stored

The table's structure is concise, consisting primarily of two foreign key columns that form a composite primary key. This design enforces the uniqueness of each rule-to-timevalue association. The RUL_ID column stores the unique identifier for a contract rule, as defined in the OKC_RULES_B table. The TVE_ID column stores the unique identifier for a time value component, as defined in the OKC_TIMEVALUES table. The combination of these two IDs constitutes the complete record, with no additional descriptive columns, indicating its pure associative purpose. The integrity of the data is maintained through the primary key constraint (OKC_COVER_TIMES_PK) and the two documented foreign key constraints.

Common Use Cases and Queries

This table is central to queries that need to determine the effective time periods for specific contract clauses or rules. A common use case is generating reports on contract coverage timelines or validating rule applicability against a given date. For instance, to list all time value details associated with a specific contract rule, one would join OKC_COVER_TIMES to OKC_TIMEVALUES. Conversely, to find all rules governed by a particular time period, a join from OKC_COVER_TIMES to OKC_RULES_B is performed. A typical analytical query might involve joining all three tables to produce a comprehensive view of rule-time associations:

  • SELECT r.rule_number, tv.timevalue, ct.rul_id, ct.tve_id FROM okc_cover_times ct, okc_rules_b r, okc_timevalues tv WHERE ct.rul_id = r.id AND ct.tve_id = tv.id;

This table is predominantly managed by the application's business logic and public APIs; direct DML operations are rare and should be avoided to maintain data integrity.

Related Objects

OKC_COVER_TIMES has defined relationships with two key master tables in the Contracts Core schema, as per the provided metadata. The table references OKC_RULES_B via the foreign key on the RUL_ID column. This links each association to a specific contractual rule. It also references OKC_TIMEVALUES via the foreign key on the TVE_ID column, linking each association to a defined time component. The table itself is referenced by its primary key constraint, OKC_COVER_TIMES_PK. Understanding these relationships is critical for any data extraction, integration, or extension effort involving contract rule timing.