SDM_CURRENCY_RATE
This table sores all currency conversion rates by data collection period, rate type.
Details
Object type: TABLE
Primary Key
Table 4-10 Primary Key Table
| Constraint Name | Columns |
|---|---|
| SDM_CURRATE_PK | CURRENCY_RATE_ID |
Foreign Key
Table 4-11 Foreign Key Table
| Table | Foreign Tbale | Foreign Key Column |
|---|---|---|
| SDM_CURRENCY_RATE | SDM_CURRENCY | TO_CURRENCY_ID |
| SDM_CURRENCY_RATE | SDM_CURRENCY | FROM_CURRENCY_ID |
| SDM_CURRENCY_RATE | SDM_CURR_RATE_TYPE | RATE_TYPE_ID |
| SDM_CURRENCY_RATE | SDM_DATA_COLLECTION_PERIOD | DCP_ID |
Columns
Table 4-12 Column Details Table
| Name | Data Type | Length | Precision | Scale | Null Allowed | Comments |
|---|---|---|---|---|---|---|
| CURRENCY_RATE_ID | NUMBER | 18 | 0 | No | Unique identifier of the record. | |
| DCP_ID | NUMBER | 18 | 0 | No | Data Collection Period, for which, conversion rate is stored. Refers to DCP_ID of SDM_DATA_COLLECTION_PERIOD table. | |
| RATE_TYPE_ID | NUMBER | 18 | 0 | No | Rate type of the conversion rate. Refers to RATE_TYPE_ID of SDM_CURR_RATE_TYPE table. | |
| FROM_CURRENCY_ID | NUMBER | 18 | 0 | No | From Currency. Refers to CURRENCY_ID of SDM_CURRENCY table. | |
| TO_CURRENCY_ID | NUMBER | 18 | 0 | No | To Currency. Refers to CURRENCY_ID of SDM_CURRENCY table. | |
| RATE | NUMBER | 29 | 15 | No | Conversion rate. | |
| 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-13 Index Table
| Index | Uniqueness | Columns |
|---|---|---|
| SDM_CURRATE_N1 | NONUNIQUE | DCP_ID, RATE_TYPE_ID |
| SDM_CURRATE_PK | UNIQUE | CURRENCY_RATE_ID |
| SDM_CURRATE_U1 | UNIQUE | DCP_ID, RATE_TYPE_ID, FROM_CURRENCY_ID, TO_CURRENCY_ID |