SDM_PRIOR_PERIODS
This table stores the lookup to determine the prior period given a period, year and a number of periods to look back from.
Primary Key
Table 4-148 Primary Key Table
Constraint Name | Columns |
---|---|
SDM_PRIOR_PERIODS_PK | PRIOR_ID |
Foreign Key
Table 4-149 Foreign Key Table
Table | Foreign Table | Foreign Key Columns |
---|---|---|
SDM_PRIOR_PERIODS | SDM_PERIOD | PRIOR_PERIOD_ID |
SDM_PRIOR_PERIODS | SDM_YEAR | PRIOR_YEAR_ID |
SDM_PRIOR_PERIODS | SDM_PERIOD | PERIOD_ID |
SDM_PRIOR_PERIODS | SDM_YEAR | YEAR_ID |
Columns
Table 4-150 Column Details Table
Name | Data Type | Length | Precision | Scale | Null Allowed | Comments |
---|---|---|---|---|---|---|
PRIOR_ID | NUMBER | 18 | 0 | No | Unique identifier of the record. | |
YEAR_ID | NUMBER | 18 | 0 | No | Year ID. Refers to YEAR_ID of SDM_YEAR table. | |
PERIOD_ID | NUMBER | 18 | 0 | No | Period ID. Refers to PERIOD_ID of SDM_PERIOD table. | |
NUM_PERIODS_PRIOR | NUMBER | 4 | 0 | No | Number of periods to look back. | |
PRIOR_YEAR_ID | NUMBER | 18 | 0 | No | Prior Year ID. Refers to YEAR_ID of SDM_YEAR table. | |
PRIOR_PERIOD_ID | NUMBER | 18 | 0 | No | Prior Period ID. Refers to PERIOD_ID of SDM_PERIOD table. | |
APP_ID | NUMBER | 1 | 0 | No | Identifier for the application to which the row corresponds to, for example, SDM:4. | |
OBJECT_VERSION_NUMBER | NUMBER | 9 | 0 | No | Used to implement optimistic locking. This number is incremented every time that the row is updated. The number is compared at the start and end of a transaction to detect whether another session has updated the row since it was queried. | |
LAST_UPDATE_LOGIN | VARCHAR2 | 255 | Yes | Who column: indicates the session login associated to the user who last updated the row. | ||
LAST_UPDATED_BY | VARCHAR2 | 255 | No | Who column: indicates the user who last updated the row. | ||
LAST_UPDATE_DATE | DATE | No | Who column: indicates the date and time of the last update of the row. | |||
CREATED_BY | VARCHAR2 | 255 | No | Who column: indicates the user who created the row. | ||
CREATION_DATE | DATE | No | Who column: indicates the date and time of the creation of the row. |
Indexes
Table 4-151 Index Table
Index | Uniqueness | Columns |
---|---|---|
SDM_PRIOR_PERIODS_PK | UNIQUE | PRIOR_ID |
SDM_PRIOR_PERIODS_U1 | UNIQUE | YEAR_ID, PERIOD_ID, NUM_PERIODS_PRIOR |