> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# UNDERLYING_DESCRIPTION_OVERRIDES

The UNDERLYING\_DESCRIPTION\_OVERRIDES table contains the Override definitions for the Underlying Descriptions.

| Column Name | Type | Not Null |
| - | - | - |
| UNDERLYING | STRING | Y |
| RISK\_CLASS | STRING | Y |
| PARAMETER\_SET | STRING | Y |
| BUCKET | STRING | |
| CSRQUALITY | STRING | |
| CSRSECTOR | STRING | |
| CSRRATING | STRING | |
| EQUITY\_MARKET\_CAP | STRING | |
| EQUITY\_ECONOMY | STRING | |
| EQUITY\_SECTOR | STRING | |
| POOL | STRING | |
| ATTACHMENT | DOUBLE | |
| DETACHMENT | DOUBLE | |
| AS\_OF\_DATE | DATE | Y |

## Unique Key

| Columns |
| - |
| UNDERLYING |
| RISK\_CLASS |
| PARAMETER\_SET |
| AS\_OF\_DATE |

## Override Base Table

The base table for these overrides is the [Underlying Description](https://docs.activeviam.com/solutions/frtb/6.0/database/underlying_description.md) table. To define Overrides you must add facts to the base table. For details on why this is required, see [Overrides With DirectQuery](https://docs.activeviam.com/solutions/frtb/6.0/dev/dev-direct-query/customization-and-internals/overrides-with-directquery.md).

### Inject Base Table

For each override, you must generate multiple entries in the [Underlying Description](https://docs.activeviam.com/solutions/frtb/6.0/database/underlying_description.md) table with the following structure.

| Override Parameter | **Underlying Description** Table Field |
| - | - |
| **OVERRIDE KEY FIELD** | **UNDERLYING** |
| **OVERRIDE DATE FIELD** | **AS\_OF\_DATE** |

Where:

* **Override Parameter**: The parameters to determine where to apply this override.
* **Underlying Description Table Field**: The field in the [Underlying Description](https://docs.activeviam.com/solutions/frtb/6.0/database/underlying_description.md) base table for this override.

### Create Base Store Tuples

See the [Create Override Tuples](https://docs.activeviam.com/solutions/frtb/6.0/dev/dev-direct-query/customization-and-internals/overrides-with-directquery.md#create-the-override-tuples) section for
an example of how to create the override tuples for the following override fields. These are the fields we want to override in the base override table, in
this case the [Underlying Description](https://docs.activeviam.com/solutions/frtb/6.0/database/underlying_description.md) Table.

| Override Table |
| - |
| PARAMETER\_SET |
| BUCKET |
| CSRQUALITY |
| CSRSECTOR |
| CSRRATING |
| EQUITY\_MARKET\_CAP |
| EQUITY\_ECONOMY |
| EQUITY\_SECTOR |
| POOL |
| ATTACHMENT |
| DETACHMENT |

These fields form an intermediate table containing the Override's base store fields and will be merged back into the Override base table: [Underlying Description](https://docs.activeviam.com/solutions/frtb/6.0/database/underlying_description.md).

#### Map Override Fields to Base Table Fields

Once you create your tuples for each override field, you can then map the tuples back to the base store using the following relationship:

| Override Table | Underlying Description Table Field | Note |
| - | - | - |
| OVERRIDE KEY FIELD | UNDERLYING | |
| OVERRIDE DATE FIELD | AS\_OF\_DATE | |
| PARAMETER\_SET | | No mapping exists |
| BUCKET | BUCKET | |
| CSRQUALITY | CSRQUALITY | |
| CSRSECTOR | CSRSECTOR | |
| CSRRATING | CSRRATING | |
| EQUITY\_MARKET\_CAP | EQUITY\_MARKET\_CAP | |
| EQUITY\_ECONOMY | EQUITY\_ECONOMY | |
| EQUITY\_SECTOR | EQUITY\_SECTOR | |
| POOL | POOL | |
| ATTACHMENT | ATTACHMENT | |
| DETACHMENT | DETACHMENT | |
| | RISK\_CLASS | No mapping exists |
| | GIRR\_CURVE\_TYPE | No mapping exists |
| | GIRR\_CCY | No mapping exists |
| | UNDERLYING\_FXORIGINAL\_CCY | No mapping exists |
