-- Databricks notebook source
insert overwrite dm.dm_td_external_keycompatitor (
  RNK,
  BRAND_NAME,
  BRAND_CODE,
  IMSBRAND,
  CompatitorCN,
  CLASS,
  CompatitorEN,
  CORP,
  Market,
  VBP,
  ValueType,
  MARKETDESC,
  Strategicbrand,
  TA,
  DEFAULTFLAG,
  CompatitorMarket,
  CompatitorType,
  DATA_SOURCE
)
  select
    RNK,
    BRAND_NAME,
    BRAND_CODE,
    IMSBRAND,
    competitorcn,
    CLASS,
    competitoren,
    CORP,
    Market,
    VBP,
    ValueType,
    MARKETDESC,
    Strategicbrand,
    TA,
    int(DEFAULTFLAG),
    competitormarket,
    competitortype,
    DATA_SOURCE
  from
    dwd.dwd_gnd_ims_compete_product_config