PDC_REPORT_CreazioneDB/sql/storedCollaudo/wh_MERGED_PROCEDURE_NUOVA.sql
2025-06-06 19:02:52 +02:00

123 lines
3.8 KiB
SQL

-- Schema: wh
-- Stored Procedure: MERGED_PROCEDURE_NUOVA
CREATE procedure [wh].[MERGED_PROCEDURE_NUOVA]
AS
BEGIN
SET NOCOUNT ON;
---------------------------------------------------------------------
truncate table wh.pl_s85rendimentoportafogliocono
truncate table wh.pl_areemonitorate
truncate table wh.pl_s43lineaselfbf
truncate table wh.pl_s10patrimoniofinanziario
truncate table wh.pl_prodotti_non_associati_area_inv
truncate table wh.pl_d2_s151profilodirischio
truncate table wh.pl_d2_s152patrimonio
truncate table wh.pl_d2_s153patrimoniofinanziario
truncate table wh.pl_d2_s154patrimoniofinanziario
truncate table wh.pl_d2_s155patrimonioimmobiliare
truncate table wh.pl_d2_s156altropatrimonio
truncate table wh.pl_d2_s157confrontopiramidi
truncate table wh.pl_d2_s158piramidemodello
truncate table wh.pl_d2_s159patrimoniofinanziario
truncate table wh.pl_d2_s160dettaglioprodottibf
truncate table wh.pl_d2_s162dettaglioprodotti
truncate table wh.pl_d2_s163patrimoniofinanziariomassetclass
truncate table wh.pl_d2_s164polizzealtriistituti
truncate table wh.pl_d2_s165fondialtriistituti
truncate table wh.pl_d2_s167distribuzionerischiocredito
truncate table wh.pl_d2_s168tabellaemittenti
truncate table wh.pl_s43dettaglioprodottibf
truncate table wh.PL_D2_S169RischiomercatoRischiocredito
truncate table wh.pl_d2_s170rischiodiversificazione
truncate table wh.pl_d2_s171patrimoniononrappresentabileassettclass
truncate table wh.pl_mp_s137bonus
truncate table wh.pl_mp_s135monitoraggioinvestimento
truncate table wh.pl_mp_s134monitoraggioliquidita
truncate table wh.pl_mp_s134bismonitoraggioliqinv
truncate table wh.pl_mp_s133bisprincipaliprodotti
truncate table wh.pl_mp_s133areebisognoprincprod
truncate table wh.pl_mp_s146rischiodiversificazione
truncate table wh.pl_mp_s141analisirisparmiotable
truncate table wh.pl_mp_s140analisirisparmiocharts
truncate table wh.pl_mp_s137biscapitaleprotetto
truncate table wh.pl_s43contocorrentebf
truncate table wh.pl_s43bisdettaglioprodottibf
truncate table wh.pl_s88patrimoniononconsideratonelcalcolodelrendimento
truncate table wh.pl_s82datisintetici
truncate table wh.pl_s82bisdatisintetici
truncate table wh.pl_s76alternativapatrimoniononrappresentabileassettclass
truncate table wh.pl_s80alternativa
truncate table wh.pl_s96rischiomercatorischiocredito
truncate table wh.pl_d2_s170rischiodiversificazione
truncate table wh.PL_D_S178IndicatoriEsitoAdeguatezza
------------------------------------------------------------------------
---------------------------------------------PL_S85RendimentoPortafoglioCono
BEGIN
exec wh.MERGED_PROCEDURE_S85
END
---------------------------------------------------------------------------
---------------------------------------------PL_S43LineaSelfBF
BEGIN
exec wh.MERGED_PROCEDURE_S43
END
---------------------------------------------------------------------------
---------------------------------------------PL_S10PatrimonioFinanziario
BEGIN
exec [wh].[MERGED_PROCEDURE_S10]
END
---------------------------------------------------------------------------
---------------------------------------------PL_Prodotti_Non_Associati_Area_Inv
BEGIN
exec [wh].[MERGED_PROCEDURE_PL_Prodotti_Non_Associati_Area_Inv]
END
---------------------------------------------------------------------------
---------------------------------------------PL_D3_S151ProfiloDiRischio
BEGIN
exec [wh].[MERGED_PROCEDURE_S151]
END
---------------------------------------------------------------------------
---------------------------------------------PL_D2_S169RischiomercatoRischiocredito
BEGIN
exec wh.MERGED_PROCEDURE_S169
END
---------------------------------------------------------------------------
---------------------------------------------PL_D2_S170RischioDiversificazione
BEGIN
exec wh.MERGED_PROCEDURE_S170
END
---------------------------------------------------------------------------
-----------------