--------------------------------------------------------
--  DDL for Table W_ODS_TMS_RAR_SUBLIMIT
--------------------------------------------------------

  CREATE TABLE "CT_ET_TEMPLATES"."W_ODS_TMS_RAR_SUBLIMIT" 
   (	"A_KEY" NUMBER(38,0), 
	"A_WORKFLOW_HISTORY_KEY" NUMBER(38,0), 
	"ID" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"LIMIT" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"LIMIT_CURRENCY" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"TEMPL" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"ACTIVE_FROM" DATE, 
	"ACTIVE_TO" DATE, 
	"GAP_SET" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"MATURITY_GAP_FROM" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"MATURITY_GAP_TO" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"RISK_GAP_FROM" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"RISK_GAP_TO" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"DELIVERY_GAP_FROM" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"DELIVERY_GAP_TO" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"INSTRUMENT" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"UNDERLYING" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"DELIVERY" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"LEG" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CURRENCY" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CURRENCY_CLASS" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PORTFOLIO_OWNER" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PORTFOLIO" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PACKAGE_TYPE" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CLIENT" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BANK" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"ACCOUNT" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH0" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH1" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH2" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH3" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH4" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH5" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH6" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH7" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH8" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH9" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH10" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH11" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH12" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH13" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH14" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH15" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH16" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH17" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH18" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH19" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"MINIMUM_EXPRESSION" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"MAXIMUM_EXPRESSION" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"RATING" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PARENT" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CLIENT_GROUP" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"CLIENT_MAIN_GROUP" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"RISK_COUNTRY" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"GUARANTEE_LEVEL" NUMBER(12,0), 
	"GUARANTEE_PARAM_0" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"GUARANTEE_PARAM_1" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"GUARANTEE_PARAM_2" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"GUARANTEE_PARAM_3" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"GUARANTEE_PARAM_4" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"GUARANTEE_PARAM_5" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"GUARANTEE_PARAM_6" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"GUARANTEE_PARAM_7" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"GUARANTEE_PARAM_8" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"GUARANTEE_PARAM_9" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"GUARANTEE_TYPE" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"INSTRUMENT_PATH" NUMBER(12,0), 
	"MAX_RATING_CODE" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"MIN_RATING_CODE" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"UMI_MAX_RATING_CODE" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"UMI_MIN_RATING_CODE" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"UMI_RATING" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"FLAGS" NUMBER(12,0), 
	"AFFECT_GAP_FROM" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"AFFECT_GAP_TO" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH20" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH21" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH22" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH23" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH24" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH25" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH26" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH27" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH28" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH29" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH30" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH31" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH32" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH33" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH34" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH35" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH36" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH37" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH38" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"BRANCH39" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"PACKAGE_MAIN_TYPE" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"UNDER_MATURITY_GAP_FROM" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"UNDER_MATURITY_GAP_TO" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"ADJUSTED_RISK_GAP_FROM" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"ADJUSTED_RISK_GAP_TO" VARCHAR2(512 CHAR) COLLATE "USING_NLS_COMP", 
	"LEG_GROUP" NUMBER(12,0), 
	"LEG_PATH" NUMBER(12,0), 
	"POSITION_TYPE" NUMBER(12,0)
   )  DEFAULT COLLATION "USING_NLS_COMP" SEGMENT CREATION DEFERRED 
  PCTFREE 10 PCTUSED 40 INITRANS 10 MAXTRANS 255 
 COLUMN STORE COMPRESS FOR QUERY HIGH ROW LEVEL LOCKING LOGGING
  TABLESPACE "DATA" ;
