First Commit - Source Code from Reply
This commit is contained in:
78
dbcmnpsrc/FE/mnpapp/script/dbUpDate/kitDicembre12/dwhDDL.sql
Normal file
78
dbcmnpsrc/FE/mnpapp/script/dbUpDate/kitDicembre12/dwhDDL.sql
Normal file
@@ -0,0 +1,78 @@
|
||||
create table MNP_DW_REPORT_MONITORAGGIO_REC
|
||||
(
|
||||
mese_comp varchar2(8) not null,
|
||||
tipo_giorno_inserimento varchar2(2) not null,
|
||||
fascia_oraria_richiesta number not null,
|
||||
fascia_oraria_invio number not null,
|
||||
tipo_cliente varchar2(5) not null,
|
||||
numero_richieste number
|
||||
)
|
||||
tablespace TAB_DWH;
|
||||
|
||||
comment on column MNP_DW_REPORT_MONITORAGGIO_REC.mese_comp
|
||||
is 'Mese di competenza delle richieste';
|
||||
comment on column MNP_DW_REPORT_MONITORAGGIO_REC.tipo_giorno_inserimento
|
||||
is 'Indicata il tipo di giorno della data di inserimento della richiesta su DBC: L lavorativo P prefestivo F Festisto';
|
||||
comment on column MNP_DW_REPORT_MONITORAGGIO_REC.fascia_oraria_richiesta
|
||||
is 'Indica se la richiesta e'' stata ricevuta prima dell''inizio della fascia (valore 1) nella fascia (2) e dopo la fascia (3)';
|
||||
comment on column MNP_DW_REPORT_MONITORAGGIO_REC.fascia_oraria_invio
|
||||
is 'Indica se il file e'' stato inviato nello stesso giorno della ricezione della richiesta (0), nel giorno successivo (1), o successivamente (2)';
|
||||
comment on column MNP_DW_REPORT_MONITORAGGIO_REC.tipo_cliente
|
||||
is 'Tipologia di Cliente (CO o BU)';
|
||||
comment on column MNP_DW_REPORT_MONITORAGGIO_REC.numero_richieste
|
||||
is 'Numero delle richieste';
|
||||
|
||||
-- creare indice su mese_comp
|
||||
create index IDX_MNP_DW_REPMONREC_MESECOMP on MNP_DW_REPORT_MONITORAGGIO_REC (MESE_COMP)
|
||||
tablespace TAB_IDX_SMALL;
|
||||
|
||||
|
||||
create table MNP_DW_REPORT_TCR
|
||||
(
|
||||
id_richiesta varchar2(23) not null,
|
||||
blocco NUMBER NOT null,
|
||||
data_di_riferimento DATE NOT NULL,
|
||||
data_dco_eff DATE NOT NULL,
|
||||
tcr1 number,
|
||||
tcr2 number,
|
||||
msisdn varchar2(15) not null,
|
||||
codice_pre_post_pagato VARCHAR2(3),
|
||||
codice_operatore_don_eff varchar2(4) not null,
|
||||
codice_operatore_rec_eff varchar2(4) not null
|
||||
)
|
||||
tablespace TAB_DWH;
|
||||
|
||||
comment on column MNP_DW_REPORT_TCR.id_richiesta
|
||||
is 'Id della richiesta con trasferimento credito';
|
||||
comment on column MNP_DW_REPORT_TCR.blocco
|
||||
is 'Puo'' avere questi valori: 1-flag blocco credito, 2-flag verifica credito anomalo, 0-nessun flag';
|
||||
comment on column MNP_DW_REPORT_TCR.data_di_riferimento
|
||||
is 'Rappresenta la data di notifica del credito o dello sblocco dell''importo';
|
||||
comment on column MNP_DW_REPORT_TCR.data_dco_eff
|
||||
is 'Rappresenta la data di cut over effettiva della richiesta per join su ricariche BMC';
|
||||
comment on column MNP_DW_REPORT_TCR.tcr1
|
||||
is 'Importo definitivo indicato nei messaggi di TCR inviati dall''AOM';
|
||||
comment on column MNP_DW_REPORT_TCR.tcr2
|
||||
is 'Importo legato all''ultimo messaggio di: -XML di Sblocco importo ricevuto dall''AOM donatig oppure -XML di Sblocco credito anomalo dall''AOM al donating';
|
||||
comment on column MNP_DW_REPORT_TCR.msisdn
|
||||
IS 'Msisdn del trasferimento credito';
|
||||
comment on column MNP_DW_REPORT_TCR.codice_operatore_don_eff
|
||||
is 'Codice operatore donor effettivo del trasferimento credito';
|
||||
comment on column MNP_DW_REPORT_TCR.codice_operatore_don_eff
|
||||
is 'Codice operatore recipient effettivo del trasferimento credito';
|
||||
|
||||
|
||||
ALTER TABLE MNP_DW_REPORT_TCR ADD CONSTRAINT PK_MNP_DW_REPORT_TCR PRIMARY KEY (id_richiesta, codice_operatore_don_eff, codice_operatore_rec_eff)
|
||||
USING INDEX TABLESPACE TAB_IDX_MEDIUM;
|
||||
|
||||
create index IDX1_MNP_DW_REPORT_TCR_DT_RIF on MNP_DW_REPORT_TCR (data_di_riferimento)
|
||||
tablespace TAB_IDX_MEDIUM;
|
||||
|
||||
create index IDX2_MNP_DW_REPORT_TCR_BLOCCO on MNP_DW_REPORT_TCR (blocco)
|
||||
tablespace TAB_IDX_MEDIUM;
|
||||
|
||||
create index IDX3_MNP_DW_REPORT_TCR_COPDON on MNP_DW_REPORT_TCR (codice_operatore_don_eff)
|
||||
tablespace TAB_IDX_MEDIUM;
|
||||
|
||||
create index IDX4_MNP_DW_REPORT_TCR_COPREC on MNP_DW_REPORT_TCR (codice_operatore_rec_eff)
|
||||
tablespace TAB_IDX_MEDIUM;
|
||||
Reference in New Issue
Block a user