CREATE OR REPLACE FORCE VIEW "OU_CSDB"."DEBT_MARS" 
  AS 
select  
A_KEY,
NEWUPDATED,
IDLOADDATE_DIM,
EXTERNALCODE_ISIN,
EXTERNALCODETYPE_NC,
EXTERNALCODE_NATIONAL,
IDIRINSTRUMENT,
SHORTNAME,
cast(null as decimal ) as  IDIRDEPOSITORY,
IDIRDEBTTYPE,
IDIRASSETSECTYPE,
IDIRCLASSIFICATIONCODE_CFI,
IDIRCLASSIFICATIONCODE_ESAI,
IDIRCLASSIFICATIONCODE_ESAI_DM,
IDIRCURRENCY_NOMINAL,
AMOUNTISSUED,
AMOUNTOUTSTANDING,
AMOUNTOUTSTANDING_EUR,
POOLFACTOR,
ISSUEPRICE,
IDISSUEDATE,
IDIRCOUPONTYPE,
IDIRCOUPONFREQUENCY,
IDIRCURRENCY_COUPON,
COUPONRATE,
COUPONDATE,
IDIRREDEMPTIONTYPE,
IDIRREDEMPTIONFREQUENCY,
IDIRCURRENCY_REDEMPTION,
REDEMPTIONPRICE,
IDMATURITYDATE,
IDIRORGANISATIONALIASTYPE_IS,
ISSUERSOURCECODE,
ISSUEREXTERNALCODE_MFI,
ISSUEREXTERNALCODE_BIC,
ISSUEREXTERNALCODE_BEI,
IDIRORGANISATION_ISSUER,
ISSUERNAME,
IDIRCOUNTRY,
IDIRCOUNTRY_DM,
IDIRCLASSIFICATIONCODE_ESAO,
IDIRCLASSIFICATIONCODE_ESAO_DM,
IDIRCLASSIFICATIONCODE_NACE,
PUBLICATIONPRICEDATE,
PUBLICATIONPRICE,
PUBLICATIONPRICETYPE,
PUBLICATIONPRICEQUOTATIONBASIS,
MONTHLYAVERAGEPRICE,
ACCRUALSTARTDATE,
DEBTACCRUALDEBTOR,
DEBTACCRUALDEBTOR_DM,
DEBTACCRUALCREDITOR,
DEBTACCRUALCREDITOR_TYP,
ACCRUEDINTEREST,
YTMNONOPTIONADJUSTED,
ESCB_ISSUER_IDENT,
VA_ESCBCODETYPE,
IDUDCMPPARTY,
AMOUNTOUTSTANDINGTYPE,
MARKETCAPITALISATION,
MARKETCAPITALISATION_EUR,
VA_SECURITYSTATUS,
VA_INSTRSUPPLEMENTARYCLASS,
VA_RESIDUALMATURITYCLASS,
VA_ISINSEC,
VA_ISELIGIBLEFOREADB,
IDIRCLASSIFICATIONCODE_ESAI10,
IDIRCLASSIFICATIONCODE_ESAO10,
IDIRDEBTTYPE_N,
SENIORITY,
ISSUEREXTERNALCODE_LEI,
A_WORKFLOW_HISTORY_KEY AS A_ETL_LOAD_SET_FK,
INSTR_ESA2010_CLASS_VALUETYPE,
ISS_ESA2010_CLASS_VALUETYPE,
VA_SECURITYSTATUSDATE,
GROUP_TYPE,
HASEMBEDDEDOPTION,
VOLUMETRADED,
PRIMARYLISTINGNAME,
PRIMARYLISTINGCOUNTRY,
VA_INSTRPORTFLAGS,
cast(null as decimal ) as  VA_BONDDURATION,
RESIDUALMATURITY,
ORIGINAL_MATURITY,
IDIRCLASSIFICATIONCODE_CFIN,
COUPONFIRSTPAYMENTDATE,
COUPONLASTPAYMENTDATE,
COUPONRATEUNDERLYINGCODE_ISIN,
COUPONRATESPREAD,
COUPONRATEMULTIPLIER,
COUPONRATECAP,
COUPONRATEFLOOR,
IDISSUEDATE_TRANCHE,
ISSUEPRICE_TRANCHE,
VA_ISPRIVATEPLACEMENT,
RIAD_CODE,
RIAD_OUID,
ESG1,
ESG2,
ESG3,
STRIP,
DEPOSITORY_RECEIPT,
RULE_144A,
REG_S,
WARRANT,
CSEC_RELEVANCE_STOCK,
CSEC_RELEVANCE_GROSS_ISSUANCE,
CSEC_RELEVANCE_REDEMPTION,
ACCRUING_COUPON,
ACCRUING_DISCOUNT,
STEPID,
PROGRAMNAME,
PROGRAMCEILING,
PROGRAMSTATUS,
ISSUERNACE21SECTOR,
INSTRUMENTQUOTATIONBASIS,
PLACEHOLDER38,
PLACEHOLDER39,
PLACEHOLDER40,
PLACEHOLDER41,
PLACEHOLDER42,
PLACEHOLDER43,
PLACEHOLDER44,
PLACEHOLDER45,
PLACEHOLDER46,
PLACEHOLDER47,
PLACEHOLDER48,
PLACEHOLDER49,
PLACEHOLDER50
FROM
ODS.CSDB_DEBT_ODS;