-- EXEC AS USER DBCGO         
-- Add field CSV4 to View DBCGO.MNP_REPORT_AGCOM_VIEW
-- to read new field CSV4 in View DWH.MNP_REPORT_AGCOM_VIEW
-- to cover further 4k segment of CLOB field CSV in table DWH.MNP_REPORT_AGCOM
-- MNP_SM_2350 Subject: Anomalia su report AGCOM
-- From: Renzulli Giuliano On: venerdì 24 novembre 2017 12:08

CREATE OR REPLACE FORCE VIEW MNP_REPORT_AGCOM_VIEW (
	  MESEANNO
	, TIPO_REPORT
	, CSV1
	, CSV2
	, CSV3
	, CSV4
	, DATA_CREAZIONE
	, IDROW
) AS (
	(SELECT 
	  A.MESE ||'/'|| A.ANNO  AS ANNOMESE
	, A.TIPO
	, A.CSV1
	, A.CSV2
	, A.CSV3
	, A.CSV4
	, A.DATA_CREAZIONE
	, ROWNUM AS IDROW
	  FROM MNP_REPORT_AGCOM_VIEW@dwh A)
);

COMMENT ON COLUMN MNP_REPORT_AGCOM_VIEW.CSV4 IS 'Added 201712 MNP_SM_2349 - extend coverage of overgrown DWH.MNP_REPORT_AGCOM.CSV';
/
