> ## 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.

# RRAOOVERRIDES

The RRAOOVERRIDES table contains the override definitions for RRAO categories.

| Column Name | Type | Not Null |
| - | - | - |
| RRAOCATEGORY | STRING | Y |
| RISK\_CLASS | STRING | Y |
| PARAMETER\_SET | STRING | Y |
| RESIDUAL\_RISK | STRING | |
| EXOTIC\_UNDERLYING | STRING | |
| OTHER\_RESIDUAL\_RISK\_TYPE | STRING | |
| AS\_OF\_DATE | STRING | Y |
| EXEMPTION\_REASON | STRING | Y |
| ASSET\_CLASS | STRING | Y |
| RRAO\_ZERO\_RISK\_WEIGHT | STRING | |

The optional RRAO\_ZERO\_RISK\_WEIGHT column, available from Atoti FRTB 6.0.10, is present only when the `frtb.eu-da.rrao-zero-risk-weight.enabled` property is `true`. It overrides the flag of the [RRAO](https://docs.activeviam.com/solutions/frtb/6.0/database/rrao.md) table; no value leaves it untouched. For adding the column, see [Step 1: Migrate a DirectQuery database](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/jurisdictions/eu-da.md#step-1-migrate-a-directquery-database).

## Unique Key

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

## Override Base Table

The base table for these overrides is the [RRAO](https://docs.activeviam.com/solutions/frtb/6.0/database/rrao.md) table. Defining overrides requires adding 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, multiple entries must be generated in the [RRAO](https://docs.activeviam.com/solutions/frtb/6.0/database/rrao.md) table with the following
structure.

| Override Parameter | **RRAO** Table Field |
| - | - |
| **OVERRIDE KEY FIELD** | **RRAOCATEGORY** |
| **OVERRIDE DATE FIELD** | **AS\_OF\_DATE** |

Where:

* **Override Parameter**: The parameters to determine where to apply this override.
* **RRAO Table Field**: The field in the [RRAO](https://docs.activeviam.com/solutions/frtb/6.0/database/rrao.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 to override in the base override table, in
this case the [RRAO](https://docs.activeviam.com/solutions/frtb/6.0/database/rrao.md) table.

| Override Table |
| - |
| RESIDUAL\_RISK |
| EXOTIC\_UNDERLYING |
| OTHER\_RESIDUAL\_RISK\_TYPE |
| RRAO\_ZERO\_RISK\_WEIGHT |

The RRAO\_ZERO\_RISK\_WEIGHT column belongs to this list only when the `frtb.eu-da.rrao-zero-risk-weight.enabled` property is `true`.

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

#### Map Override Fields to Base Table Fields

Once the tuples for each override field are created, they can then be mapped back to the base store using the following relationship:

| Override Table | RRAO Field | Note |
| - | - | - |
| OVERRIDE KEY FIELD | RRAOCATEGORY | |
| OVERRIDE DATE FIELD | AS\_OF\_DATE | |
| PARAMETER\_SET | | No mapping exists |
| RESIDUAL\_RISK | RESIDUAL\_RISK | |
| EXOTIC\_UNDERLYING | EXOTIC\_UNDERLYING | |
| OTHER\_RESIDUAL\_RISK\_TYPE | OTHER\_RESIDUAL\_RISK\_TYPE | |
| EXEMPTION\_REASON | EXEMPTION\_REASON | |
| ASSET\_CLASS | ASSET\_CLASS | |
| RRAO\_ZERO\_RISK\_WEIGHT | RRAO\_ZERO\_RISK\_WEIGHT | Optional column |
| | RISK\_CLASS | No mapping exists |
